fallback: translate: srem i128
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: srem i128 M |
| Occurrences: | 3 in 3 configs, 3 test files, 9 more counted only |
| Snippet from: | alu64.5924335a24.ll (mutant of alu64.ll) @add_lo_negone via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1 -code-model=medium |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.3 = external global i128
define i64 @add_lo_negone(i64 %0) {
%B = srem i128 0, -1
%2 = add nsw i64 %0, -4294967297
store i128 %B, ptr @G.3, align 4
ret i64 %2
}
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1 -code-model=medium -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: srem: ' %B = srem i128 0, -1' (in function: add_lo_negone)
warning: Instruction selection used fallback path for add_lo_negone
Occurrences (3):
| Input | Function | Config |
|---|
| alu64.5924335a24.ll (mutant of alu64.ll) | add_lo_negone | -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1 -code-model=medium |
| atomic-rmw.0e48afed8c.ll (mutant of atomic-rmw.ll) | atomicrmw_max_i32_monotonic | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zacas,+zhinx -O0 |
| float-fcmp.c8e8fdbc65.ll (mutant of float-fcmp.ll) | fcmp_ule | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zfinx -O1 |
Generated 2026-11-29 14:49 UTC.