fallback: translate: load fp128
| Run: | main-db12fc36f6-20261127-110859 |
| Kind: | fallback |
| Category: | translate: load fp128 M |
| Occurrences: | 2 in 2 configs, 1 test files |
| Snippet from: | llvm.frexp.4eeeb776a8.ll (mutant of llvm.frexp.ll) @test_frexp_f128_i32_only_use_exp via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.1 = external global fp128
@G.2 = external global i1
@G.3 = external global i1
; Function Attrs: nounwind
define i32 @test_frexp_f128_i32_only_use_exp(fp128 %a) #0 {
%LGV = load fp128, ptr @G.1, align 16
%result = call { fp128, i32 } @llvm.frexp.f128.i32(fp128 %a)
%C1 = fcmp ugt fp128 %LGV, %a
%result.0 = extractvalue { fp128, i32 } %result, 1
%C = fcmp ogt fp128 %a, %LGV
store i1 %C, ptr @G.2, align 1
store i1 %C1, ptr @G.3, align 1
ret i32 %result.0
}
; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare { fp128, i32 } @llvm.frexp.f128.i32(fp128) #1
attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }
Reproduce:
llc -mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: load: ' %LGV = load fp128, ptr @G.1, align 16' (in function: test_frexp_f128_i32_only_use_exp)
warning: Instruction selection used fallback path for test_frexp_f128_i32_only_use_exp
Occurrences (2):
| Input | Function | Config |
|---|
| llvm.frexp.4eeeb776a8.ll (mutant of llvm.frexp.ll) | test_frexp_f128_i32_only_use_exp | -mtriple=riscv64 -mattr=+zdinx -verify-machineinstrs -target-abi=lp64 |
| llvm.frexp.8d23f333e8.ll (mutant of llvm.frexp.ll) | test_frexp_f128_i32_only_use_exp | -mtriple=riscv32 -mattr=+zdinx -verify-machineinstrs -target-abi=ilp32 |
Generated 2026-11-29 14:49 UTC.