fallback: legalize: G_VECREDUCE_FMAXIMUM <N x f32>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_VECREDUCE_FMAXIMUM <N x f32> M |
| Occurrences: | 5 in 5 configs, 1 test files, 41 more counted only |
| Snippet from: | fixed-vectors-reduction-fp.04fd429025.ll (mutant of fixed-vectors-reduction-fp.ll) @vreduce_fmaximum_v4f32 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zfa,+c -O2 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.3 = external global i1
define float @vreduce_fmaximum_v4f32(ptr %x) {
%v = load <4 x float>, ptr %x, align 16
%red = call float @llvm.vector.reduce.fmaximum.v4f32(<4 x float> %v)
%C = fcmp oge double +inf, 1.000000e+00
store i1 %C, ptr @G.3, align 1
ret float %red
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.vector.reduce.fmaximum.v4f32(<4 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,+zfa,+c -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zfa,+c -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %2:_(f32) = G_VECREDUCE_FMAXIMUM %1:_(<4 x f32>) (in function: vreduce_fmaximum_v4f32)
warning: Instruction selection used fallback path for vreduce_fmaximum_v4f32
Occurrences (5):
| Input | Function | Config |
|---|
| fixed-vectors-reduction-fp.04fd429025.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmaximum_v4f32 | -mtriple=riscv32 -verify-machineinstrs -mattr=+v,+zfh,+zvfhmin,+f,+d,+zfa,+c -O2 |
| fixed-vectors-reduction-fp.477b103e1d.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmaximum_v7f32_nonans | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+m -O1 |
| fixed-vectors-reduction-fp.6e7b616039.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmaximum_v32f32_nonans | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+d,+c -O0 |
| fixed-vectors-reduction-fp.91305c000f.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmaximum_v7f32_nonans | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+v,+zfh,+f,+d -O2 |
| fixed-vectors-reduction-fp.e74a3662a2.ll (mutant of fixed-vectors-reduction-fp.ll) | vreduce_fmaximum_v16f32_nonans | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+v,+zfh,+zvfh,+f,+d -O0 |
Generated 2026-11-29 14:49 UTC.