fallback: translate: srem i64
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: srem i64 M |
| Occurrences: | 5 in 5 configs, 5 test files, 28 more counted only |
| Snippet from: | rv64zbkb.5e8f1976dd.ll (mutant of rv64zbkb.ll) @packh_zero_i64_2 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbkb,+zhinx -O2 -code-model=small |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i64 @packh_zero_i64_2(i64 %a) #0 {
%B = srem i64 %a, -9223372036854775808
ret i64 %B
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbkb,+zhinx -O2 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbkb,+zhinx -O2 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: srem: ' %B = srem i64 %a, -9223372036854775808' (in function: packh_zero_i64_2)
warning: Instruction selection used fallback path for packh_zero_i64_2
Occurrences (5):
| Input | Function | Config |
|---|
| half-imm.49404769d7.ll (mutant of half-imm.ll) | undef | -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinxmin,+zbkb -O2 |
| overflow-intrinsic-optimizations.bb80e5ec2a.ll (mutant of overflow-intrinsic-optimizations.ll) | no__mulodi4 | -mtriple=riscv32 -mattr=+zdinx -O0 -verify-machineinstrs |
| rv64zbkb.5e8f1976dd.ll (mutant of rv64zbkb.ll) | packh_zero_i64_2 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbkb,+zhinx -O2 -code-model=small |
| uadd_sat.1a70e9af13.ll (mutant of uadd_sat.ll) | func2 | -mtriple=riscv64 -mattr=+m,+zfinx -O0 -verify-machineinstrs |
| xaluo.8a37c51524.ll (mutant of xaluo.ll) | usubo.select.i64 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zdinx -O2 |
Generated 2026-11-29 14:49 UTC.