fallback: legalize: G_FMAXNUM <N x f32>
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | legalize: G_FMAXNUM <N x f32> M |
| Occurrences: | 3 in 3 configs, 2 test files, 6 more counted only |
| Snippet from: | fixed-vectors-vfmax-vp.df10236e7a.ll (mutant of fixed-vectors-vfmax-vp.ll) @vfmax_vv_v4f32 via llvm-extract |
| Config: | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global double
@G.1 = external global i1
define <4 x float> @vfmax_vv_v4f32(<4 x float> %va, <4 x float> %vb, <4 x i1> %m, i32 zeroext %evl) {
%LGV = load double, ptr @G, align 8
%C = fcmp ule double %LGV, f0x7FEFFFFFFFFFFFFF
%v = call <4 x float> @llvm.maxnum.v4f32(<4 x float> %va, <4 x float> %vb)
store i1 %C, ptr @G.1, 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=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh -O2 -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.df10236e7a.ll (mutant of fixed-vectors-vfmax-vp.ll) | vfmax_vv_v4f32 | -mtriple=riscv64 -target-abi=lp64d -verify-machineinstrs -mattr=+zvfh -O2 |
| fixed-vectors-vfmax.24804ae905.ll (mutant of fixed-vectors-vfmax.ll) | vfmax_v4f32_vf | -mtriple=riscv32 -target-abi=ilp32d -verify-machineinstrs -mattr=+d,+zfh,+zvfh,+zfbfmin,+zvfbfmin,+zihintpause -O2 |
| fixed-vectors-vfmax.dc864d048a.ll (mutant of fixed-vectors-vfmax.ll) | vfmax_v4f32_fv | -mtriple=riscv32 -verify-machineinstrs -mattr=+d,+zfh,+zvfhmin,+experimental-zvfbfa,+zicond -O1 |
Generated 2026-11-29 14:49 UTC.