fallback: legalize: G_FCANONICALIZE

Run:main-db12fc36f6-20261127-110859
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 db12fc36f6
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):

InputFunctionConfig
double-arith.llfsgnjn_d-mtriple=riscv32 -verify-machineinstrs
double-arith.llfmsub_d-mtriple=riscv32 -verify-machineinstrs
double-arith.llfnmadd_d-mtriple=riscv32 -verify-machineinstrs
double-arith.llfnmadd_d_2-mtriple=riscv32 -verify-machineinstrs
double-arith.llfnmsub_d-mtriple=riscv32 -verify-machineinstrs
double-arith.llfnmsub_d_2-mtriple=riscv32 -verify-machineinstrs
double-arith.llfsgnjn_d-mtriple=riscv64 -verify-machineinstrs
double-arith.llfmsub_d-mtriple=riscv64 -verify-machineinstrs
double-arith.llfnmadd_d-mtriple=riscv64 -verify-machineinstrs
double-arith.llfnmadd_d_2-mtriple=riscv64 -verify-machineinstrs
double-arith.llfnmsub_d-mtriple=riscv64 -verify-machineinstrs
double-arith.llfnmsub_d_2-mtriple=riscv64 -verify-machineinstrs
float-arith.llfmsub_s-mtriple=riscv32 -verify-machineinstrs
float-arith.llfnmadd_s-mtriple=riscv32 -verify-machineinstrs
float-arith.llfnmadd_s_2-mtriple=riscv32 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.