fallback: translate: urem i16
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: urem i16 M |
| Occurrences: | 4 in 4 configs, 4 test files, 9 more counted only |
| Snippet from: | rem.836e5f81c6.ll (mutant of rem.ll) @urem16_constant_lhs via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O1 -code-model=small |
| Local check: | reproduces at db12fc36f6 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i16 @urem16_constant_lhs(i16 %a) #0 {
%1 = urem i16 10, %a
%C = icmp sle i16 %a, %1
store i1 %C, ptr poison, align 1
ret i16 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O1 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O1 -code-model=small -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: urem: ' %1 = urem i16 10, %a' (in function: urem16_constant_lhs)
warning: Instruction selection used fallback path for urem16_constant_lhs
Occurrences (4):
| Input | Function | Config |
|---|
| ctlz-cttz-ctpop.884ae44c62.ll (mutant of ctlz-cttz-ctpop.ll) | test_cttz_i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zfinx -O1 |
| rem.836e5f81c6.ll (mutant of rem.ll) | urem16_constant_lhs | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O1 -code-model=small |
| rvp-bitreverse-zbkb.df556f6572.ll (mutant of rvp-bitreverse-zbkb.ll) | test_bitreverse_v2i16 | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbb,+zbkb,+zfinx -O3 |
| zfhmin-half-intrinsics.f6ec9eb6f2.ll (mutant of zfhmin-half-intrinsics.ll) | lround_f16 | -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinxmin -O1 |
Generated 2026-11-29 14:49 UTC.