fallback: translate: sdiv i16
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: sdiv i16 M |
| Occurrences: | 6 in 6 configs, 6 test files, 24 more counted only |
| Snippet from: | div-by-constant.c87ffa8fb9.ll (mutant of div-by-constant.ll) @sdiv16_constant_no_srai via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zbb,+zdinx -O1 -code-model=small |
| Local check: | reproduces at db12fc36f6 |
| 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 uge i16 %1, %1
store i1 %C, ptr @G, align 1
ret i16 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zbb,+zdinx -O1 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zbb,+zdinx -O1 -code-model=small -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 (6):
| Input | Function | Config |
|---|
| allow-check.6932175b85.ll (mutant of allow-check.ll) | test_ubsan | -mtriple=riscv32 -fast-isel=0 -mattr=+zba,+zdinx -O1 -verify-machineinstrs |
| div-by-constant.c87ffa8fb9.ll (mutant of div-by-constant.ll) | sdiv16_constant_no_srai | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zbb,+zdinx -O1 -code-model=small |
| double-intrinsics.b681b8be6e.ll (mutant of double-intrinsics.ll) | trunc_f64 | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zdinx -O0 |
| half-convert-strict.842a6d8c30.ll (mutant of half-convert-strict.ll) | fcvt_h_ui_zeroext | -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -disable-strictnode-mutation -mattr=+zdinx,+zhinx,+zicsr,+zba -O3 |
| scmp.47013081d0.ll (mutant of scmp.ll) | scmp.8.8 | -mtriple=riscv32 -mattr=+zhinx -O0 -verify-machineinstrs |
| short-forward-branch-opt-zibi.ab94fba372.ll (mutant of short-forward-branch-opt-zibi.ll) | select_eq_imm1 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O1 |
Generated 2026-11-29 14:49 UTC.