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

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:translate: call llvm.vector.reduce.fadd.nxv4f32 M
Occurrences:2 in 2 configs, 1 test files
Snippet from:vreductions-fp-sdnode.3d3d7909b5.ll (mutant of vreductions-fp-sdnode.ll) @vreduce_fadd_nxv4f32 via llvm-extract
Config:-mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

define float @vreduce_fadd_nxv4f32(<vscale x 4 x float> %v, float %s) {
  %red = call reassoc float @llvm.vector.reduce.fadd.nxv4f32(float %s, <vscale x 4 x float> %v)
  %C = fcmp ueq float %red, +qnan
  store i1 %C, ptr @G, align 1
  ret float %red
}

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

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

Reproduce:

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

Local llc output:

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

Occurrences (2):

InputFunctionConfig
vreductions-fp-sdnode.3d3d7909b5.ll (mutant of vreductions-fp-sdnode.ll)vreduce_fadd_nxv4f32-mtriple=riscv64 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=lp64d -verify-machineinstrs
vreductions-fp-sdnode.402f33eb14.ll (mutant of vreductions-fp-sdnode.ll)vreduce_fadd_nxv4f32-mtriple=riscv32 -mattr=+d,+zfh,+zvfh,+v,+m -target-abi=ilp32d -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.