fallback: legalize: G_FMAXNUM s16
| Run: | main-bc8218b282-20261015-074651 |
| Kind: | fallback |
| Category: | legalize: G_FMAXNUM s16 |
| Occurrences: | 10 in 6 configs, 2 test files |
| Snippet from: | half-arith.ll @fmax_h via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f |
| Local check: | reproduces at bc8218b282 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define half @fmax_h(half %a, half %b) #0 {
%1 = call half @llvm.maxnum.f16(half %a, half %b)
ret half %1
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare half @llvm.maxnum.f16(half, half) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %2:_(s16) = G_FMAXNUM %0:_, %1:_ (in function: fmax_h)
warning: Instruction selection used fallback path for fmax_h
Occurrences (10):
| Input | Function | Config |
|---|
| half-arith.ll | fmax_h | -mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f |
| half-arith.ll | fmax_h | -mtriple=riscv32 -verify-machineinstrs |
| half-arith.ll | fmax_h | -mtriple=riscv64 -mattr=+zfhmin -verify-machineinstrs -target-abi lp64f |
| half-arith.ll | fmax_h | -mtriple=riscv64 -verify-machineinstrs |
| half-intrinsics.ll | maxnum_f16 | -mtriple=riscv32 -mattr=+d -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32d |
| half-intrinsics.ll | maxnum_f16 | -mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f |
| half-intrinsics.ll | maxnum_f16 | -mtriple=riscv32 -verify-machineinstrs |
| half-intrinsics.ll | maxnum_f16 | -mtriple=riscv64 -mattr=+d -mattr=+zfhmin -verify-machineinstrs -target-abi lp64d |
| half-intrinsics.ll | maxnum_f16 | -mtriple=riscv64 -mattr=+zfhmin -verify-machineinstrs -target-abi lp64f |
| half-intrinsics.ll | maxnum_f16 | -mtriple=riscv64 -verify-machineinstrs |
Generated 2026-10-15 08:05 UTC.