fallback: legalize: G_FPTOUI_SAT s8,s64
| Run: | explore-04ca53e65f-20261014-114124 |
| Kind: | fallback |
| Category: | legalize: G_FPTOUI_SAT s8,s64 |
| Occurrences: | 4 in 4 configs, 1 test files |
| Snippet from: | double-convert.ll @fcvt_wu_s_sat_i8 via llvm-extract |
| Config: | -mtriple=riscv32 -mattr=+d -verify-machineinstrs -target-abi=ilp32d |
| Local check: | reproduces at 04ca53e65f |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define zeroext i8 @fcvt_wu_s_sat_i8(double %a) #0 {
start:
%0 = tail call i8 @llvm.fptoui.sat.i8.f64(double %a)
ret i8 %0
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.fptoui.sat.i8.f64(double) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv32 -mattr=+d -verify-machineinstrs -target-abi=ilp32d -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+d -verify-machineinstrs -target-abi=ilp32d -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %1:_(s8) = G_FPTOUI_SAT %0:_(s64) (in function: fcvt_wu_s_sat_i8)
warning: Instruction selection used fallback path for fcvt_wu_s_sat_i8
Occurrences (4):
| Input | Function | Config |
|---|
| double-convert.ll | fcvt_wu_s_sat_i8 | -mtriple=riscv32 -mattr=+d -verify-machineinstrs -target-abi=ilp32d |
| double-convert.ll | fcvt_wu_s_sat_i8 | -mtriple=riscv32 -verify-machineinstrs |
| double-convert.ll | fcvt_wu_s_sat_i8 | -mtriple=riscv64 -mattr=+d -verify-machineinstrs -target-abi=lp64d |
| double-convert.ll | fcvt_wu_s_sat_i8 | -mtriple=riscv64 -verify-machineinstrs |
Generated 2026-10-15 08:05 UTC.