fallback: translate: call llvm.vp.reduce.or.nxv2i64

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.vp.reduce.or.nxv2i64 M
Occurrences:9 in 7 configs, 1 test files
Snippet from:vreductions-int-vp.208b8c07ce.ll (mutant of vreductions-int-vp.ll) @vpreduce_or_nxv2i64 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+xtheadba,+zicsr -O0 -code-model=small
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define signext i64 @vpreduce_or_nxv2i64(i64 signext %s, <vscale x 2 x i64> %v, <vscale x 2 x i1> %m, i32 zeroext %evl) {
  %C = icmp ne i64 %s, 1
  %r = call i64 @llvm.vp.reduce.or.nxv2i64(i64 %s, <vscale x 2 x i64> %v, <vscale x 2 x i1> %m, i32 %evl)
  store i1 %C, ptr @G, align 1
  ret i64 %r
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vp.reduce.or.nxv2i64(i64, <vscale x 2 x i64>, <vscale x 2 x i1>, i32) #0

attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+xtheadba,+zicsr -O0 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+xtheadba,+zicsr -O0 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vp.reduce.or.nxv2i64: '  %r = call i64 @llvm.vp.reduce.or.nxv2i64(i64 %s, <vscale x 2 x i64> %v, <vscale x 2 x i1> %m, i32 %evl)' (in function: vpreduce_or_nxv2i64)
warning: Instruction selection used fallback path for vpreduce_or_nxv2i64

Occurrences (9):

InputFunctionConfig
vreductions-int-vp.14d111edb6.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
vreductions-int-vp.208b8c07ce.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+xtheadba,+zicsr -O0 -code-model=small
vreductions-int-vp.4c5258a0c3.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
vreductions-int-vp.4f2ed555d9.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zba -O2
vreductions-int-vp.6f1c804ca5.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbkb,+zve64d -O3
vreductions-int-vp.c0e4b9d466.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2
vreductions-int-vp.cad71d397b.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zve64d -O3
vreductions-int-vp.da05be05fb.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv2i64-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O2
vreductions-int-vp.f55db26cd1.ll (mutant of vreductions-int-vp.ll)vpreduce_or_nxv2i64-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+m -O1

Generated 2026-11-29 14:49 UTC.