fallback: legalize: G_FMAXNUM <N x f32>
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | legalize: G_FMAXNUM <N x f32> M |
| Occurrences: | 3 in 2 configs, 2 test files, 3 more counted only |
| Snippet from: | fixed-vectors-vfmax-vp.b3932977e5.ll (mutant of fixed-vectors-vfmax-vp.ll) @vfmax_vv_v4f32 via llvm-extract |
| Config: | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin -O3 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i8
define <4 x float> @vfmax_vv_v4f32(<4 x float> %va, <4 x float> %vb, <4 x i1> %m, i32 zeroext %evl) {
%A = alloca i8, align 1
store i8 poison, ptr %A, align 1
%LGV = load i8, ptr @G, align 1
%B = ashr i8 %LGV, 1
%v = call <4 x float> @llvm.maxnum.v4f32(<4 x float> %va, <4 x float> %vb)
store i8 %B, ptr %A, align 1
ret <4 x float> %v
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.maxnum.v4f32(<4 x float>, <4 x float>) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %20:_(<4 x f32>) = G_FMAXNUM %0:_, %1:_ (in function: vfmax_vv_v4f32)
warning: Instruction selection used fallback path for vfmax_vv_v4f32
Occurrences (3):
| Input | Function | Config |
|---|
| fixed-vectors-vfmax-vp.b3932977e5.ll (mutant of fixed-vectors-vfmax-vp.ll) | vfmax_vv_v4f32 | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+zvfhmin -O3 |
| fixed-vectors-vfmax.a34cd88ce9.ll (mutant of fixed-vectors-vfmax.ll) | vfmax_v8f32_fv | -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+experimental-zvfbfa,+zicond -O2 |
| fixed-vectors-vfmax.a34cd88ce9.ll (mutant of fixed-vectors-vfmax.ll) | vfmax_v16f32_fv | -mtriple=riscv64 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+experimental-zvfbfa,+zicond -O2 |
Generated 2026-11-29 14:49 UTC.