fallback: translate: call llvm.vector.reduce.fadd.nxv2f32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: call llvm.vector.reduce.fadd.nxv2f32 M
Occurrences:4 in 4 configs, 1 test files, 4 more counted only
Snippet from:vreductions-fp-sdnode.32a0baa72f.ll (mutant of vreductions-fp-sdnode.ll) @vreduce_ord_fadd_nxv2f32 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+v,+m -O0
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i8

define float @vreduce_ord_fadd_nxv2f32(<vscale x 2 x float> %v, float %s) {
  %LGV = load i8, ptr @G, align 1
  %red = call float @llvm.vector.reduce.fadd.nxv2f32(float %s, <vscale x 2 x float> %v)
  %C = icmp slt i8 1, %LGV
  store i1 %C, ptr poison, align 1
  ret float %red
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: call llvm.vector.reduce.fadd.nxv2f32: '  %red = call float @llvm.vector.reduce.fadd.nxv2f32(float %s, <vscale x 2 x float> %v)' (in function: vreduce_ord_fadd_nxv2f32)
warning: Instruction selection used fallback path for vreduce_ord_fadd_nxv2f32

Occurrences (4):

InputFunctionConfig
vreductions-fp-sdnode.32a0baa72f.ll (mutant of vreductions-fp-sdnode.ll)vreduce_ord_fadd_nxv2f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+v,+m -O0
vreductions-fp-sdnode.58cfe3a7bb.ll (mutant of vreductions-fp-sdnode.ll)vreduce_ord_fadd_nxv2f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O3
vreductions-fp-sdnode.82db504f18.ll (mutant of vreductions-fp-sdnode.ll)vreduce_fadd_nxv2f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O1
vreductions-fp-sdnode.9de8568fd8.ll (mutant of vreductions-fp-sdnode.ll)vreduce_ord_fadd_nxv2f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+v,+m -O1

Generated 2026-11-29 14:49 UTC.