fallback: legalize: G_FPTOSI s32,s128
| Run: | main-bc8218b282-20261015-074651 |
| Kind: | fallback |
| Category: | legalize: G_FPTOSI s32,s128 |
| Occurrences: | 1 in 1 configs, 1 test files |
| Snippet from: | fp128.ll @test_add_and_fptosi via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs |
| Local check: | reproduces at bc8218b282 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@x = external local_unnamed_addr global fp128, align 16
@y = external local_unnamed_addr global fp128, align 16
; Function Attrs: nounwind
define i32 @test_add_and_fptosi() #0 {
%1 = load fp128, ptr @x, align 16
%2 = load fp128, ptr @y, align 16
%3 = fadd fp128 %1, %2
%4 = fptosi fp128 %3 to i32
ret i32 %4
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %5:_(s32) = G_FPTOSI %4:_(s128) (in function: test_add_and_fptosi)
warning: Instruction selection used fallback path for test_add_and_fptosi
Occurrences (1):
| Input | Function | Config |
|---|
| fp128.ll | test_add_and_fptosi | -mtriple=riscv32 -verify-machineinstrs |
Generated 2026-10-15 08:05 UTC.