fallback: legalize: G_VECREDUCE_SEQ_FADD <N x f32>

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:legalize: G_VECREDUCE_SEQ_FADD <N x f32> M
Occurrences:9 in 8 configs, 1 test files, 44 more counted only
Snippet from:fixed-vectors-reduction-fp.80077f62c4.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_ord_fwadd_v32f32 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O1 -code-model=small
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define float @vreduce_ord_fwadd_v32f32(ptr %x, float %s) {
  %v = load <32 x half>, ptr %x, align 64
  %B = lshr i64 -1, -1
  %e = fpext <32 x half> %v to <32 x float>
  %red = call float @llvm.vector.reduce.fadd.v32f32(float %s, <32 x float> %e)
  store i64 %B, ptr poison, align 4
  ret float %red
}

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

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

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O1 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O1 -code-model=small -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (9):

InputFunctionConfig
fixed-vectors-reduction-fp.23e67ef23a.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fwadd_v32f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+m -O1
fixed-vectors-reduction-fp.37d26c9d1b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fwadd_v8f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d,+a -O0
fixed-vectors-reduction-fp.3aafd64d3b.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fwadd_v2f32-mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O3
fixed-vectors-reduction-fp.80077f62c4.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fwadd_v32f32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O1 -code-model=small
fixed-vectors-reduction-fp.92d97e931f.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fwadd_v2f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O2
fixed-vectors-reduction-fp.92d97e931f.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fwadd_v32f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O2
fixed-vectors-reduction-fp.9a1cbd3672.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v7f32-mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O1
fixed-vectors-reduction-fp.b85002b2e5.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v64f32-mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O2
fixed-vectors-reduction-fp.c917b97252.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fadd_v2f32-mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zihintpause -O3 -code-model=medium

Generated 2026-11-29 14:49 UTC.