fallback: translate: urem i8
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: urem i8 M |
| Occurrences: | 3 in 3 configs, 3 test files, 15 more counted only |
| Snippet from: | atomic-signext.3f4096d910.ll (mutant of atomic-signext.ll) @atomicrmw_sub_i8_monotonic via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zacas,+c,+zhinx -O1 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define signext i8 @atomicrmw_sub_i8_monotonic(ptr %a, i8 %b) #0 {
%B = urem i8 %b, 42
%1 = atomicrmw sub ptr %a, i8 %B monotonic, align 1
ret i8 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zacas,+c,+zhinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zacas,+c,+zhinx -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: urem: ' %B = urem i8 %b, 42' (in function: atomicrmw_sub_i8_monotonic)
warning: Instruction selection used fallback path for atomicrmw_sub_i8_monotonic
Occurrences (3):
| Input | Function | Config |
|---|
| alu8.d1b294ccfa.ll (mutant of alu8.ll) | srl | -mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O1 -code-model=medium |
| atomic-signext.3f4096d910.ll (mutant of atomic-signext.ll) | atomicrmw_sub_i8_monotonic | -mtriple=riscv32 -verify-machineinstrs -mattr=+a,+zacas,+c,+zhinx -O1 |
| half-arith-strict.91104115d5.ll (mutant of half-arith-strict.ll) | fadd_h | -mtriple=riscv32 -verify-machineinstrs -disable-strictnode-mutation -target-abi ilp32 -mattr=+zhinx,+zbb,+zicsr -O2 |
Generated 2026-11-29 14:49 UTC.