fallback: translate: sdiv i16
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: sdiv i16 M |
| Occurrences: | 3 in 3 configs, 3 test files, 31 more counted only |
| Snippet from: | div.01a90d0ec6.ll (mutant of div.ll) @sdiv16_constant_lhs via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i16 @sdiv16_constant_lhs(i16 %a) #0 {
%1 = sdiv i16 %a, -10
ret i16 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: sdiv: ' %1 = sdiv i16 %a, -10' (in function: sdiv16_constant_lhs)
warning: Instruction selection used fallback path for sdiv16_constant_lhs
Occurrences (3):
| Input | Function | Config |
|---|
| codemodel-lowering.cd5046257a.ll (mutant of codemodel-lowering.ll) | lower_blockaddress_displ | -mtriple=riscv32 -target-abi=ilp32 -verify-machineinstrs -mattr=+zhinx,+zihintpause -O0 |
| div-by-constant.c626218598.ll (mutant of div-by-constant.ll) | sdiv16_constant_srai | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zdinx -O1 |
| div.01a90d0ec6.ll (mutant of div.ll) | sdiv16_constant_lhs | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3 |
Generated 2026-11-29 14:49 UTC.