fallback: legalize: G_VECREDUCE_SEQ_FADD <N x f32>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_SEQ_FADD <N x f32> M |
| Occurrences: | 4 in 4 configs, 1 test files, 69 more counted only |
| Snippet from: | fixed-vectors-reduction-fp.dd2707023b.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_ord_fwadd_v16f32 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zfh,+zvfhmin,+d -O1 -code-model=medium |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define float @vreduce_ord_fwadd_v16f32(ptr %x, float %s) {
%v = load <16 x half>, ptr %x, align 32
%e = fpext <16 x half> %v to <16 x float>
%C = icmp ult i32 42, 42
%red = call float @llvm.vector.reduce.fadd.v16f32(float %s, <16 x float> %e)
store i1 %C, ptr poison, align 1
ret float %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.vector.reduce.fadd.v16f32(float, <16 x float>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfh,+zvfhmin,+d -O1 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfh,+zvfhmin,+d -O1 -code-model=medium -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), %3:_(<16 x f32>) (in function: vreduce_ord_fwadd_v16f32)
warning: Instruction selection used fallback path for vreduce_ord_fwadd_v16f32
Occurrences (4):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-fp.4ac666c7ad.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_ord_fwadd_v2f32 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f -O2 |
| fixed-vectors-reduction-fp.67c89f3fde.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_ord_fadd_v7f32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zcb -O0 |
| fixed-vectors-reduction-fp.dd2707023b.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_ord_fwadd_v16f32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zfh,+zvfhmin,+d -O1 -code-model=medium |
| fixed-vectors-reduction-fp.f823c1a203.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_ord_fwadd_v4f32 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zfh,+zvfh,+f,+d -O3 |
Generated 2026-11-29 14:49 UTC.