fallback: legalize: G_FCANONICALIZE s16
| Run: | main-04ca53e65f-20261014-113325 |
| Kind: | fallback |
| Category: | legalize: G_FCANONICALIZE s16 |
| Occurrences: | 9 in 9 configs, 1 test files |
| Snippet from: | fp-fcanonicalize.ll @fcanonicalize_f16 via llvm-extract |
| Config: | --mtriple=riscv32 |
| Local check: | reproduces at 04ca53e65f |
| 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 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc --mtriple=riscv32 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %2:_(s16) = nnan G_FCANONICALIZE %0:_ (in function: fcanonicalize_f16)
warning: Instruction selection used fallback path for fcanonicalize_f16
Occurrences (9):
Generated 2026-10-15 08:05 UTC.