fallback: translate: srem i1
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: srem i1 M |
| Occurrences: | 3 in 3 configs, 3 test files, 10 more counted only |
| Snippet from: | atomic-load-store.751d5fa384.ll (mutant of atomic-load-store.ll) @atomic_load_i8_seq_cst via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zfinx -O3 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
; Function Attrs: nounwind
define i8 @atomic_load_i8_seq_cst(ptr %a) #0 {
%B = srem i1 false, true
%1 = load atomic i8, ptr %a seq_cst, align 1
store i1 %B, ptr @G, align 1
ret i8 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zfinx -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zfinx -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: srem: ' %B = srem i1 false, true' (in function: atomic_load_i8_seq_cst)
warning: Instruction selection used fallback path for atomic_load_i8_seq_cst
Occurrences (3):
| Input | Function | Config |
|---|
| atomic-load-store.751d5fa384.ll (mutant of atomic-load-store.ll) | atomic_load_i8_seq_cst | -mtriple=riscv64 -verify-machineinstrs -mattr=+a,+ztso,+zfinx -O3 |
| branch-relaxation-rv64.2897540035.ll (mutant of branch-relaxation-rv64.ll) | relax_bcc | -mtriple=riscv64 -relocation-model=pic -verify-machineinstrs -mattr=+zdinx -O3 -code-model=medium |
| half-round-conv-sat.fb89201850.ll (mutant of half-round-conv-sat.ll) | test_round_si64 | -mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zhinx -O1 |
Generated 2026-11-29 14:49 UTC.