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