fallback: translate: sdiv i16
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: sdiv i16 M |
| Occurrences: | 5 in 5 configs, 5 test files, 67 more counted only |
| Snippet from: | div-by-constant.a03119c1c1.ll (mutant of div-by-constant.ll) @sdiv16_constant_no_srai via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O2 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
; Function Attrs: nounwind
define i16 @sdiv16_constant_no_srai(i16 %a) #0 {
%1 = sdiv i16 %a, 3
%C = icmp sle i16 %a, %1
store i1 %C, ptr @G, align 1
ret i16 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O2 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: sdiv: ' %1 = sdiv i16 %a, 3' (in function: sdiv16_constant_no_srai)
warning: Instruction selection used fallback path for sdiv16_constant_no_srai
Occurrences (5):
| Input | Function | Config |
|---|
| calling-conv-ilp32-ilp32f-ilp32d-common.def54d7e21.ll (mutant of calling-conv-ilp32-ilp32f-ilp32d-common.ll) | callee_large_scalars | -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O2 -code-model=medium |
| ctz_zero_return_test.306cc395de.ll (mutant of ctz_zero_return_test.ll) | test_ctlz_select_i16 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zdinx -O2 |
| div-by-constant.a03119c1c1.ll (mutant of div-by-constant.ll) | sdiv16_constant_no_srai | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx -O2 |
| half-round-conv.a473561807.ll (mutant of half-round-conv.ll) | test_ceil_ui32 | -mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zhinxmin -O3 |
| reserved-regs.e6e8901a64.ll (mutant of reserved-regs.ll) | foo | -mtriple=riscv32 -verify-machineinstrs -mattr=+reserve-x9,+zdinx -O0 |
Generated 2026-11-29 14:49 UTC.