fallback: legalize: G_FCANONICALIZE
| Run: | main-d9924131a4-20261128-102057 |
| Kind: | fallback |
| Category: | legalize: G_FCANONICALIZE |
| Occurrences: | 46 in 6 configs, 3 test files |
| Snippet from: | fp-fcanonicalize.ll @fcanonicalize_f16 via llvm-extract |
| Config: | --mtriple=riscv32 --mattr=+d,-zfh |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
define half @fcanonicalize_f16(half %x) {
%z = call nnan half @llvm.canonicalize.f16(half %x)
ret half %z
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare half @llvm.canonicalize.f16(half) #0
attributes #0 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc --mtriple=riscv32 --mattr=+d,-zfh -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc --mtriple=riscv32 --mattr=+d,-zfh -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %3:_(f16) = nnan G_FCANONICALIZE %0:_ (in function: fcanonicalize_f16)
warning: Instruction selection used fallback path for fcanonicalize_f16
Occurrences (46) (first 15):
Generated 2026-11-29 14:49 UTC.