fallback: translate: call llvm.vp.reduce.smax.nxv4i1

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: call llvm.vp.reduce.smax.nxv4i1 M
Occurrences:5 in 5 configs, 1 test files, 2 more counted only
Snippet from:vreductions-mask-vp.34b173e3c8.ll (mutant of vreductions-mask-vp.ll) @vpreduce_smax_nxv4i1 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define zeroext i1 @vpreduce_smax_nxv4i1(i1 zeroext %s, <vscale x 4 x i1> %v, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %r = call i1 @llvm.vp.reduce.smax.nxv4i1(i1 %s, <vscale x 4 x i1> %v, <vscale x 4 x i1> %m, i32 %evl)
  %B = mul i1 %r, true
  store i1 %B, ptr poison, align 1
  ret i1 %r
}

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

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

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
vreductions-mask-vp.2ad51d05ab.ll (mutant of vreductions-mask-vp.ll)vpreduce_smax_nxv4i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O0
vreductions-mask-vp.34b173e3c8.ll (mutant of vreductions-mask-vp.ll)vpreduce_smax_nxv4i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
vreductions-mask-vp.375986674c.ll (mutant of vreductions-mask-vp.ll)vpreduce_smax_nxv4i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zcb,+zicond -O3
vreductions-mask-vp.3dda9bb7bb.ll (mutant of vreductions-mask-vp.ll)vpreduce_smax_nxv4i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O2
vreductions-mask-vp.da8f02f801.ll (mutant of vreductions-mask-vp.ll)vpreduce_smax_nxv4i1-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh -O1

Generated 2026-11-29 14:49 UTC.