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

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: call llvm.vp.reduce.umax.nxv4i32 M
Occurrences:7 in 7 configs, 1 test files, 2 more counted only
Snippet from:vreductions-int-vp.cad71d397b.ll (mutant of vreductions-int-vp.ll) @vpreduce_umax_nxv4i32 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zve64d -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

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)
  %C = icmp slt i32 2147483647, %s
  store i1 %C, ptr @G, align 1
  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=riscv64 -verify-machineinstrs -mattr=+zve64d -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zve64d -O3 -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 (7):

InputFunctionConfig
vreductions-int-vp.02d64bf33e.ll (mutant of vreductions-int-vp.ll)vpreduce_umax_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+xtheadba -O1 -code-model=medium
vreductions-int-vp.aa55ff5951.ll (mutant of vreductions-int-vp.ll)vpreduce_umax_nxv4i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v -O1 -code-model=medium
vreductions-int-vp.c7394a80b6.ll (mutant of vreductions-int-vp.ll)vpreduce_umax_nxv4i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+m -O2
vreductions-int-vp.cad71d397b.ll (mutant of vreductions-int-vp.ll)vpreduce_umax_nxv4i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zve64d -O3
vreductions-int-vp.e7fd4b17c7.ll (mutant of vreductions-int-vp.ll)vpreduce_umax_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zvbb -O2
vreductions-int-vp.ec15c03f84.ll (mutant of vreductions-int-vp.ll)vpreduce_umax_nxv4i32-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+m -O1
vreductions-int-vp.f55db26cd1.ll (mutant of vreductions-int-vp.ll)vpreduce_umax_nxv4i32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+m -O1

Generated 2026-11-29 14:49 UTC.