fallback: translate: call llvm.vp.reduce.umax.nxv4i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.vp.reduce.umax.nxv4i32 M
Occurrences:3 in 2 configs, 1 test files, 3 more counted only
Snippet from:vreductions-int-vp.0ddab1b70a.ll (mutant of vreductions-int-vp.ll) @vpreduce_umax_nxv4i32 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+xtheadba -O0
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define signext i32 @vpreduce_umax_nxv4i32(i32 signext %s, <vscale x 4 x i32> %v, <vscale x 4 x i1> %m, i32 zeroext %evl) {
  %r = call i32 @llvm.vp.reduce.umax.nxv4i32(i32 %s, <vscale x 4 x i32> %v, <vscale x 4 x i1> %m, i32 %evl)
  %B = udiv i16 32767, 32767
  store i16 %B, ptr poison, align 2
  ret i32 %r
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vp.reduce.umax.nxv4i32(i32, <vscale x 4 x i32>, <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,+xtheadba -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+xtheadba -O0 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
vreductions-int-vp.0ddab1b70a.ll (mutant of vreductions-int-vp.ll)vpreduce_umax_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+xtheadba -O0
vreductions-int-vp.53c1a10f9b.ll (mutant of vreductions-int-vp.ll)vpreduce_umax_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1
vreductions-int-vp.e35941b4c5.ll (mutant of vreductions-int-vp.ll)vpreduce_umax_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v -O1

Generated 2026-11-29 14:49 UTC.