fallback: legalize: G_VECREDUCE_SEQ_FADD <N x f64>

Run:main-db12fc36f6-20261127-110859
Kind:fallback
Category:legalize: G_VECREDUCE_SEQ_FADD <N x f64> 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_fwadd_v2f64 via llvm-extract
Config:-mtriple=riscv64 -target-abi=lp64d -mattr=+v,+zfh,+zvfh,+f,+d -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define double @vreduce_ord_fwadd_v2f64(ptr %x, double %s) {
  %v = load <2 x float>, ptr %x, align 8
  %e = fpext <2 x float> %v to <2 x double>
  %red = call double @llvm.vector.reduce.fadd.v2f64(double %s, <2 x double> %e)
  store double %red, ptr poison, align 8
  ret double %red
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.vector.reduce.fadd.v2f64(double, <2 x double>) #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: %4:_(f64) = G_VECREDUCE_SEQ_FADD %1:_(f64), %3:_(<2 x f64>) (in function: vreduce_ord_fwadd_v2f64)
warning: Instruction selection used fallback path for vreduce_ord_fwadd_v2f64

Occurrences (4):

InputFunctionConfig
fixed-vectors-reduction-fp.3d519ba5be.ll (mutant of fixed-vectors-reduction-fp.ll)vreduce_ord_fwadd_v2f64-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_fwadd_v2f64-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_fwadd_v2f64-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_fwadd_v2f64-mtriple=riscv32 -mattr=+v,+zfh,+zvfhmin,+f,+d -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.