fallback: translate: sdiv i64

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: sdiv i64 M
Occurrences:8 in 7 configs, 7 test files, 46 more counted only
Snippet from:rv32zbb-zbkb.ff323671d5.ll (mutant of rv32zbb-zbkb.ll) @xnor_i64 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zhinx -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i64 @xnor_i64(i64 %a, i64 %b) #0 {
  %B = sdiv i64 %a, %b
  ret i64 %B
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zhinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zhinx -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sdiv: '  %B = sdiv i64 %a, %b' (in function: xnor_i64)
warning: Instruction selection used fallback path for xnor_i64

Occurrences (8):

InputFunctionConfig
abds-neg.42d2bfcf32.ll (mutant of abds-neg.ll)abd_subnsw_i64-mtriple=riscv32 -mattr=+zbb,+zfinx,+c -O2 -code-model=medium -verify-machineinstrs
alu-roundtrip-rv64.b806816ef1.ll (mutant of alu-roundtrip-rv64.ll)sdiv_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zhinx -O0
bswap-bitreverse.6f3b22e762.ll (mutant of bswap-bitreverse.ll)test_bitreverse_bswap_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zvkb -O2
div-pow2.eda5ad1046.ll (mutant of div-pow2.ll)sdiv64_pow2_2-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zbkb -O0
div-pow2.eda5ad1046.ll (mutant of div-pow2.ll)sdiv64_pow2_negative_8589934592-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zbkb -O0
fixed-vectors-vsadd-vp.fb04905a0d.ll (mutant of fixed-vectors-vsadd-vp.ll)vsadd_vi_v4i16_unmasked-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O0
rv32zbb-zbkb.ff323671d5.ll (mutant of rv32zbb-zbkb.ll)xnor_i64-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zhinx -O0
xandesvdot-vd4dotu.857d924502.ll (mutant of xandesvdot-vd4dotu.ll)intrinsic_vd4dotu_vv_nxv1i32_nxv4i8_nxv4i8-mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zve64x,+xandesvdot,+zhinx,+c -O2

Generated 2026-11-29 14:49 UTC.