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

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vp.reduce.or.nxv8i1 M
Occurrences:7 in 7 configs, 1 test files, 4 more counted only
Snippet from:vreductions-mask-vp.0a02f38b98.ll (mutant of vreductions-mask-vp.ll) @vpreduce_or_nxv8i1 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbkb -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define zeroext i1 @vpreduce_or_nxv8i1(i1 zeroext %s, <vscale x 8 x i1> %v, <vscale x 8 x i1> %m, i32 zeroext %evl) {
  %A = alloca i32, align 4
  store i32 poison, ptr %A, align 4
  %B = add i32 -2147483648, %evl
  %r = call i1 @llvm.vp.reduce.or.nxv8i1(i1 %s, <vscale x 8 x i1> %v, <vscale x 8 x i1> %m, i32 %evl)
  store i32 %B, ptr %A, align 4
  ret i1 %r
}

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

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

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbkb -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbkb -O2 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (7):

InputFunctionConfig
vreductions-mask-vp.0a02f38b98.ll (mutant of vreductions-mask-vp.ll)vpreduce_or_nxv8i1-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbkb -O2
vreductions-mask-vp.0c6b1002b3.ll (mutant of vreductions-mask-vp.ll)vpreduce_or_nxv8i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfhmin -O1 -code-model=medium
vreductions-mask-vp.0d15b09376.ll (mutant of vreductions-mask-vp.ll)vpreduce_or_nxv8i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+c,+f -O2
vreductions-mask-vp.13f2387dcc.ll (mutant of vreductions-mask-vp.ll)vpreduce_or_nxv8i1-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zbb,+xtheadba -O2
vreductions-mask-vp.2f19bedf2d.ll (mutant of vreductions-mask-vp.ll)vpreduce_or_nxv8i1-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1
vreductions-mask-vp.335383f0ed.ll (mutant of vreductions-mask-vp.ll)vpreduce_or_nxv8i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zve64d,+zbkb -O0
vreductions-mask-vp.640c882896.ll (mutant of vreductions-mask-vp.ll)vpreduce_or_nxv8i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zicsr,+zve32x -O3

Generated 2026-11-29 14:49 UTC.