fallback: translate: srem i8
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: srem i8 M |
| Occurrences: | 4 in 4 configs, 4 test files, 12 more counted only |
| Snippet from: | sext-zext-trunc.a235b0013b.ll (mutant of sext-zext-trunc.ll) @zext_nneg_i8_to_i32 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zdinx -O0 |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i32 @zext_nneg_i8_to_i32(i8 %a) #0 {
%B = srem i8 %a, -1
%1 = zext nneg i8 %B to i32
ret i32 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zdinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zdinx -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: srem: ' %B = srem i8 %a, -1' (in function: zext_nneg_i8_to_i32)
warning: Instruction selection used fallback path for zext_nneg_i8_to_i32
Occurrences (4):
| Input | Function | Config |
|---|
| ctlz-cttz-ctpop.32d50eae81.ll (mutant of ctlz-cttz-ctpop.ll) | test_ctlz_i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O3 |
| float-convert.bbef84669a.ll (mutant of float-convert.ll) | fcvt_s_w_i8 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O1 |
| inline-asm-zdinx-constraint-r.9dae74057c.ll (mutant of inline-asm-zdinx-constraint-r.ll) | constraint_double_abi_name | -mtriple=riscv64 -target-abi=lp64 -verify-machineinstrs -mattr=+zdinx -O3 |
| sext-zext-trunc.a235b0013b.ll (mutant of sext-zext-trunc.ll) | zext_nneg_i8_to_i32 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zdinx -O0 |
Generated 2026-11-29 14:49 UTC.