fallback: translate: sub i8
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: sub i8 M |
| Occurrences: | 6 in 6 configs, 6 test files, 28 more counted only |
| Snippet from: | rem.8dd7e7f8af.ll (mutant of rem.ll) @urem8_constant_lhs via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O1 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i8
; Function Attrs: nounwind
define i8 @urem8_constant_lhs(i8 %a) #0 {
%B = sub i8 %a, 0
%1 = urem i8 10, %a
store i8 %B, ptr @G, align 1
ret i8 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: sub: ' %B = sub i8 %a, 0' (in function: urem8_constant_lhs)
warning: Instruction selection used fallback path for urem8_constant_lhs
Occurrences (6):
| Input | Function | Config |
|---|
| abds-neg.42d2bfcf32.ll (mutant of abds-neg.ll) | abd_subnsw_i8 | -mtriple=riscv32 -mattr=+zbb,+zfinx,+c -O2 -code-model=medium -verify-machineinstrs |
| atomicrmw-and-or-xor.e300ec4bb2.ll (mutant of atomicrmw-and-or-xor.ll) | atomicrmw_xor_i8_acq_rel | -mtriple=riscv64 -mattr=+a,+zfinx -O1 -verify-machineinstrs |
| double-mem.47a9cb6266.ll (mutant of double-mem.ll) | fsd | -mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx,+zilsd,+zvkb,+a -O1 |
| float-convert-strict.ad1c4b5061.ll (mutant of float-convert-strict.ll) | fcvt_s_w_i8 | -mtriple=riscv32 -verify-machineinstrs -disable-strictnode-mutation -target-abi=ilp32 -mattr=+zfinx -O3 |
| fp128.d473445d3c.ll (mutant of fp128.ll) | fptoui_i128 | -mtriple=riscv32 -mattr=+zhinx -O1 -verify-machineinstrs |
| rem.8dd7e7f8af.ll (mutant of rem.ll) | urem8_constant_lhs | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O1 |
Generated 2026-11-29 14:49 UTC.