fallback: legalize: G_FFREXP

Run:main-d9924131a4-20261128-102057
Kind:fallback
Category:legalize: G_FFREXP
Occurrences:102 in 15 configs, 4 test files
Snippet from:half-intrinsics.ll @frexp_half via llvm-extract
Config:-mtriple=riscv32 -mattr=+d -mattr=+zfh -verify-machineinstrs -target-abi ilp32d
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define { half, i32 } @frexp_half(half %x) #0 {
  %a = call { half, i32 } @llvm.frexp.f16.i32(half %x)
  ret { half, i32 } %a
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare { half, i32 } @llvm.frexp.f16.i32(half) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

llc -mtriple=riscv32 -mattr=+d -mattr=+zfh -verify-machineinstrs -target-abi ilp32d -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+d -mattr=+zfh -verify-machineinstrs -target-abi ilp32d -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %1:_(f16), %2:_(i32) = G_FFREXP %0:_ (in function: frexp_half)
warning: Instruction selection used fallback path for frexp_half

Occurrences (102) (first 15):

InputFunctionConfig
double-intrinsics.llfrexp_double-mtriple=riscv32 -mattr=+d -verify-machineinstrs -target-abi=ilp32d
double-intrinsics.llfrexp_double-mtriple=riscv32 -verify-machineinstrs
double-intrinsics.llfrexp_double-mtriple=riscv64 -mattr=+d -verify-machineinstrs -target-abi=lp64d
double-intrinsics.llfrexp_double-mtriple=riscv64 -verify-machineinstrs
float-intrinsics.llfrexp_float-mtriple=riscv32 -mattr=+d -verify-machineinstrs -target-abi=ilp32f
float-intrinsics.llfrexp_float-mtriple=riscv32 -mattr=+f -verify-machineinstrs -target-abi=ilp32f
float-intrinsics.llfrexp_float-mtriple=riscv32 -verify-machineinstrs
float-intrinsics.llfrexp_float-mtriple=riscv64 -mattr=+d -verify-machineinstrs -target-abi=lp64d
float-intrinsics.llfrexp_float-mtriple=riscv64 -mattr=+f -verify-machineinstrs -target-abi=lp64f
float-intrinsics.llfrexp_float-mtriple=riscv64 -verify-machineinstrs
half-intrinsics.llfrexp_half-mtriple=riscv32 -mattr=+d -mattr=+zfh -verify-machineinstrs -target-abi ilp32d
half-intrinsics.llfrexp_half-mtriple=riscv32 -mattr=+d -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32d
half-intrinsics.llfrexp_half-mtriple=riscv32 -mattr=+zfh -verify-machineinstrs -target-abi ilp32f
half-intrinsics.llfrexp_half-mtriple=riscv32 -mattr=+zfhmin -verify-machineinstrs -target-abi ilp32f
half-intrinsics.llfrexp_half-mtriple=riscv32 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.