fallback: translate: call llvm.vector.reduce.umax.nxv2i32

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:translate: call llvm.vector.reduce.umax.nxv2i32 M
Occurrences:2 in 2 configs, 1 test files
Snippet from:vreductions-int.0dbdf4ebb2.ll (mutant of vreductions-int.ll) @vreduce_umax_nxv2i32 via llvm-extract
Config:-mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define signext i32 @vreduce_umax_nxv2i32(<vscale x 2 x i32> %v) {
  %red = call i32 @llvm.vector.reduce.umax.nxv2i32(<vscale x 2 x i32> %v)
  %C = icmp ugt i32 42, -1
  store i1 %C, ptr @G, align 1
  ret i32 %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.umax.nxv2i32(<vscale x 2 x i32>) #0

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vector.reduce.umax.nxv2i32: '  %red = call i32 @llvm.vector.reduce.umax.nxv2i32(<vscale x 2 x i32> %v)' (in function: vreduce_umax_nxv2i32)
warning: Instruction selection used fallback path for vreduce_umax_nxv2i32

Occurrences (2):

InputFunctionConfig
vreductions-int.0dbdf4ebb2.ll (mutant of vreductions-int.ll)vreduce_umax_nxv2i32-mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs
vreductions-int.fa1547a5d4.ll (mutant of vreductions-int.ll)vreduce_umax_nxv2i32-mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.