fallback: legalize: G_VECREDUCE_FADD <N x f64>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_FADD <N x f64> M |
| Occurrences: | 7 in 6 configs, 1 test files, 44 more counted only |
| Snippet from: | fixed-vectors-reduction-fp.67c89f3fde.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fwadd_v2f64 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zcb -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
define double @vreduce_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>
%C = fcmp ugt double %s, %s
%red = call reassoc double @llvm.vector.reduce.fadd.v2f64(double %s, <2 x double> %e)
store i1 %C, ptr @G, align 1
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 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zcb -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zcb -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %6:_(f64) = reassoc G_VECREDUCE_FADD %3:_(<2 x f64>) (in function: vreduce_fwadd_v2f64)
warning: Instruction selection used fallback path for vreduce_fwadd_v2f64
Occurrences (7):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-fp.2c9f4baeae.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fwadd_v2f64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d -O3 |
| fixed-vectors-reduction-fp.4b7ee0adb6.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fwadd_v4f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O3 |
| fixed-vectors-reduction-fp.67c89f3fde.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fwadd_v2f64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zcb -O0 |
| fixed-vectors-reduction-fp.7e3fee0e58.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fwadd_v4f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O1 |
| fixed-vectors-reduction-fp.7e3fee0e58.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fadd_v16f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O1 |
| fixed-vectors-reduction-fp.f823c1a203.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fwadd_v16f64 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zfh,+zvfh,+f,+d -O3 |
| fixed-vectors-reduction-fp.ff67f59a1d.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fadd_v32f64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d,+zfa -O0 |
Generated 2026-11-29 14:49 UTC.