fallback: legalize: G_FPTOUI_SAT s128,s16

Run:main-04ca53e65f-20261014-113325
Kind:fallback
Category:legalize: G_FPTOUI_SAT s128,s16
Occurrences:9 in 3 configs, 1 test files
Snippet from:rv64-half-convert.ll @fptoui_sat_f16_to_i128 via llvm-extract
Config:-mtriple=riscv64 -mattr=+zfh -verify-machineinstrs -target-abi lp64f
Local check:reproduces at 04ca53e65f
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i128 @fptoui_sat_f16_to_i128(half %a) #0 {
  %1 = tail call i128 @llvm.fptoui.sat.i128.f16(half %a)
  ret i128 %1
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i128 @llvm.fptoui.sat.i128.f16(half) #1

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %1:_(s128) = G_FPTOUI_SAT %0:_(s16) (in function: fptoui_sat_f16_to_i128)
warning: Instruction selection used fallback path for fptoui_sat_f16_to_i128

Occurrences (9):

InputFunctionConfig
rv64-half-convert.llfptoui_sat_f16_to_i128-mtriple=riscv64 -mattr=+zfh -verify-machineinstrs -target-abi lp64f
rv64-half-convert.llfptoui_sat_f16_to_i128-mtriple=riscv64 -verify-machineinstrs -target-abi lp64
rv64-half-convert.102976c4df.ll (mutant of rv64-half-convert.ll)fptoui_sat_f16_to_i128-mtriple=riscv64 -mattr=+zhinx -verify-machineinstrs -target-abi lp64
rv64-half-convert.38b949664a.ll (mutant of rv64-half-convert.ll)fptoui_sat_f16_to_i128-mtriple=riscv64 -verify-machineinstrs -target-abi lp64
rv64-half-convert.50828ccbc1.ll (mutant of rv64-half-convert.ll)fptoui_sat_f16_to_i128-mtriple=riscv64 -verify-machineinstrs -target-abi lp64
rv64-half-convert.65cf1c63d7.ll (mutant of rv64-half-convert.ll)fptoui_sat_f16_to_i128-mtriple=riscv64 -mattr=+zfh -verify-machineinstrs -target-abi lp64f
rv64-half-convert.b598eedf1a.ll (mutant of rv64-half-convert.ll)fptoui_sat_f16_to_i128-mtriple=riscv64 -verify-machineinstrs -target-abi lp64
rv64-half-convert.c146dd34ac.ll (mutant of rv64-half-convert.ll)fptoui_sat_f16_to_i128-mtriple=riscv64 -mattr=+zfh -verify-machineinstrs -target-abi lp64f
rv64-half-convert.f04462da99.ll (mutant of rv64-half-convert.ll)fptoui_sat_f16_to_i128-mtriple=riscv64 -mattr=+zfh -verify-machineinstrs -target-abi lp64f

Generated 2026-10-15 08:05 UTC.