fallback: legalize: G_VECREDUCE_SEQ_FADD <N x f32>

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:legalize: G_VECREDUCE_SEQ_FADD <N x f32> M
Occurrences:4 in 4 configs, 1 test files
Snippet from:fixed-vectors-reduction-fp.3d519ba5be.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_ord_fadd_v8f32 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.1 = external global float
@G.2 = external global i1

define float @vreduce_ord_fadd_v8f32(ptr %x, float %s) {
  %LGV = load float, ptr @G.1, align 4
  %C = fcmp false float %s, %LGV
  %v = load <8 x float>, ptr %x, align 32
  %red = call float @llvm.vector.reduce.fadd.v8f32(float %s, <8 x float> %v)
  store i1 %C, ptr @G.2, align 1
  ret float %red
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %7:_(f32) = G_VECREDUCE_SEQ_FADD %1:_(f32), %6:_(<8 x f32>) (in function: vreduce_ord_fadd_v8f32)
warning: Instruction selection used fallback path for vreduce_ord_fadd_v8f32

Occurrences (4):

InputFunctionConfig
fixed-vectors-reduction-fp.3d519ba5be.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v8f32-mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-reduction-fp.8ab7f83c0e.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v8f32-mtriple=riscv64 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs
fixed-vectors-reduction-fp.a53a62f633.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v8f32-mtriple=riscv32 -target-abi=ilp32d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs
fixed-vectors-reduction-fp.d35d9312ea.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v8f32-mtriple=riscv32 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.