fallback: translate: srem i16
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: srem i16 M |
| Occurrences: | 4 in 4 configs, 4 test files, 34 more counted only |
| Snippet from: | rem.ef885be34d.ll (mutant of rem.ll) @srem16_constant_lhs via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx,+zhinx -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i16
; Function Attrs: nounwind
define i16 @srem16_constant_lhs(i16 %a) #0 {
%1 = srem i16 -10, %a
%B = lshr i16 %1, 0
store i16 %B, ptr @G, align 2
ret i16 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx,+zhinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx,+zhinx -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: srem: ' %1 = srem i16 -10, %a' (in function: srem16_constant_lhs)
warning: Instruction selection used fallback path for srem16_constant_lhs
Occurrences (4):
| Input | Function | Config |
|---|
| clmul.95c730ec5b.ll (mutant of clmul.ll) | clmul_i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zbs,+zhinx -O1 |
| half-arith-strict.abb5aa85f1.ll (mutant of half-arith-strict.ll) | fmadd_h | -mtriple=riscv32 -verify-machineinstrs -disable-strictnode-mutation -target-abi ilp32 -mattr=+zhinxmin -O1 |
| half-convert.e8ec047576.ll (mutant of half-convert.ll) | fcvt_h_ui | -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1 |
| rem.ef885be34d.ll (mutant of rem.ll) | srem16_constant_lhs | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zfinx,+zhinx -O0 |
Generated 2026-11-29 14:49 UTC.