fallback: translate: sdiv i8
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: sdiv i8 M |
| Occurrences: | 3 in 3 configs, 3 test files, 30 more counted only |
| Snippet from: | div-by-constant.c626218598.ll (mutant of div-by-constant.ll) @sdiv8_constant_no_srai via llvm-extract |
| Config: | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zdinx -O1 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i1
; Function Attrs: nounwind
define i8 @sdiv8_constant_no_srai(i8 %a) #0 {
%1 = sdiv i8 %a, 3
%C = icmp ne i8 %a, %a
store i1 %C, ptr @G, align 1
ret i8 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zdinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zdinx -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: sdiv: ' %1 = sdiv i8 %a, 3' (in function: sdiv8_constant_no_srai)
warning: Instruction selection used fallback path for sdiv8_constant_no_srai
Occurrences (3):
| Input | Function | Config |
|---|
| div-by-constant.c626218598.ll (mutant of div-by-constant.ll) | sdiv8_constant_no_srai | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zdinx -O1 |
| float-round-conv.ee3caaf00e.ll (mutant of float-round-conv.ll) | test_roundeven_si16 | -mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zfinx -O1 |
| zfh-half-intrinsics.8861e6fa18.ll (mutant of zfh-half-intrinsics.ll) | lround_f16 | -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zdinx -O0 |
Generated 2026-11-29 14:49 UTC.