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

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

Snippet:

@G.1 = external global <4 x i32>

define i64 @vreduce_add_nxv4i64(<vscale x 4 x i64> %v) {
  %red = call i64 @llvm.vector.reduce.add.nxv4i64(<vscale x 4 x i64> %v)
  %B = ashr <4 x i32> splat (i32 2147483647), zeroinitializer
  store <4 x i32> %B, ptr @G.1, align 16
  ret i64 %red
}

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

Occurrences (2):

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

Generated 2026-11-29 14:49 UTC.