fallback: translate: sdiv i64
| Run: | explore-db12fc36f6-20261127-115111 |
| Kind: | fallback |
| Category: | translate: sdiv i64 M |
| Occurrences: | 5 in 5 configs, 5 test files, 47 more counted only |
| Snippet from: | div-by-constant.c87ffa8fb9.ll (mutant of div-by-constant.ll) @sdiv64_constant_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:
; Function Attrs: nounwind
define i64 @sdiv64_constant_srai(i64 %a) #0 {
%1 = sdiv i64 %a, 5
%C = icmp eq i64 %a, %1
store i1 %C, ptr poison, align 1
ret i64 %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 i64 %a, 5' (in function: sdiv64_constant_srai)
warning: Instruction selection used fallback path for sdiv64_constant_srai
Occurrences (5):
| Input | Function | Config |
|---|
| div-by-constant.c87ffa8fb9.ll (mutant of div-by-constant.ll) | sdiv64_constant_srai | -mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zba,+zbb,+zdinx -O1 -code-model=small |
| half-bitmanip-dagcombines.362d86b3f8.ll (mutant of half-bitmanip-dagcombines.ll) | fabs | -mtriple=riscv32 -target-abi ilp32 -verify-machineinstrs -mattr=+zhinxmin -O2 -code-model=small |
| rv64-double-convert.5ff7a6dc5f.ll (mutant of rv64-double-convert.ll) | fptosi_f64_to_i128 | -mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zhinx -O2 |
| rv64zba.cd32073225.ll (mutant of rv64zba.ll) | mul264 | -mtriple=riscv64 -verify-machineinstrs -mattr=+zba,+zbb,+zdinx -O2 |
| scmp.704e8a9da7.ll (mutant of scmp.ll) | scmp.8.64 | -mtriple=riscv32 -mattr=+zfinx,+xtheadba -O1 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.