fallback: translate: srem i16
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: srem i16 M |
| Occurrences: | 4 in 4 configs, 4 test files, 11 more counted only |
| Snippet from: | rv64zbb-zbkb.c006fd92a9.ll (mutant of rv64zbb-zbkb.ll) @srai_i16 via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O2 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i16 @srai_i16(i16 %a) #0 {
%B = srem i16 %a, %a
%1 = ashr i16 %a, %B
ret i16 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: srem: ' %B = srem i16 %a, %a' (in function: srai_i16)
warning: Instruction selection used fallback path for srai_i16
Occurrences (4):
| Input | Function | Config |
|---|
| double-mem.2278b85258.ll (mutant of double-mem.ll) | fld | -mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx,+zilsd,+zvbb,+zcb -O3 |
| half-convert.e266ec4982.ll (mutant of half-convert.ll) | fcvt_h_ui | -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin -O3 |
| half-mem.6c720d3cdd.ll (mutant of half-mem.ll) | flh_stack | -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx,+zihintpause,+a -O2 |
| rv64zbb-zbkb.c006fd92a9.ll (mutant of rv64zbb-zbkb.ll) | srai_i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O2 |
Generated 2026-11-29 14:49 UTC.