fallback: legalize: G_VECREDUCE_SEQ_FADD <N x f64>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_SEQ_FADD <N x f64> M |
| Occurrences: | 3 in 2 configs, 1 test files, 43 more counted only |
| Snippet from: | fixed-vectors-reduction-fp.1e8714a4f0.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_ord_fwadd_v2f64 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d,+zihintpause -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global i1
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)
%C = fcmp false double %s, %s
store i1 %C, ptr @G.1, 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=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d,+zihintpause -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d,+zihintpause -O2 -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 (3):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-fp.1e8714a4f0.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_ord_fwadd_v2f64 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+f,+d,+zihintpause -O2 |
| fixed-vectors-reduction-fp.9f8f2715ea.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_ord_fadd_v4f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O0 |
| fixed-vectors-reduction-fp.f451b0f566.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_ord_fwadd_v32f64 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O0 |
Generated 2026-11-29 14:49 UTC.