fallback: translate: call llvm.vector.reduce.smax.nxv4i64

Run:main-b577f07195-20261129-101839
Kind:fallback
Category:translate: call llvm.vector.reduce.smax.nxv4i64 M
Occurrences:2 in 2 configs, 1 test files
Snippet from:vreductions-int.09bea3e427.ll (mutant of vreductions-int.ll) @vreduce_smax_nxv4i64 via llvm-extract
Config:-mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i128
@G.1 = external global i1

define i64 @vreduce_smax_nxv4i64(<vscale x 4 x i64> %v) {
  %LGV = load i128, ptr @G, align 4
  %C = icmp uge i128 -1, %LGV
  %red = call i64 @llvm.vector.reduce.smax.nxv4i64(<vscale x 4 x i64> %v)
  store i1 %C, ptr @G.1, align 1
  ret i64 %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.vector.reduce.smax.nxv4i64(<vscale x 4 x i64>) #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.smax.nxv4i64: '  %red = call i64 @llvm.vector.reduce.smax.nxv4i64(<vscale x 4 x i64> %v)' (in function: vreduce_smax_nxv4i64)
warning: Instruction selection used fallback path for vreduce_smax_nxv4i64

Occurrences (2):

InputFunctionConfig
vreductions-int.09bea3e427.ll (mutant of vreductions-int.ll)vreduce_smax_nxv4i64-mtriple=riscv64 -mattr=+m,+v -verify-machineinstrs
vreductions-int.1323c54ba7.ll (mutant of vreductions-int.ll)vreduce_smax_nxv4i64-mtriple=riscv32 -mattr=+m,+v -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.