fallback: translate: sdiv i32

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: sdiv i32 M
Occurrences:9 in 9 configs, 9 test files, 70 more counted only
Snippet from:rv32zbc-zbkc-intrinsic.d735a7368a.ll (mutant of rv32zbc-zbkc-intrinsic.ll) @clmul32 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zbc,+zbkb,+zhinx -O0 -code-model=small
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

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

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

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

Occurrences (9):

InputFunctionConfig
alu-roundtrip.809c0fef53.ll (mutant of alu-roundtrip.ll)sdiv_i32-mtriple=riscv32 -verify-machineinstrs -riscv-enable-copy-propagation=false -mattr=+m,+zdinx -O1
attributes.cdb5ce4db8.ll (mutant of attributes.ll)addi-mtriple=riscv32 -mattr=+sspm,+zdinx -O0 -verify-machineinstrs
div.01a90d0ec6.ll (mutant of div.ll)sdiv_constant_lhs-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3
exception-pointer-register.ccb82412fb.ll (mutant of exception-pointer-register.ll)callee-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+zbb -O3
min-max.bbe728c263.ll (mutant of min-max.ll)umin_i32-mtriple=riscv32 -mattr=+zhinx,+a -O1 -verify-machineinstrs
orc-b-rv64.bb9bebafeb.ll (mutant of orc-b-rv64.ll)orc_b_i32_anyext-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+a,+zdinx -O1
rv32zbc-zbkc-intrinsic.d735a7368a.ll (mutant of rv32zbc-zbkc-intrinsic.ll)clmul32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbc,+zbkb,+zhinx -O0 -code-model=small
shl-cttz.3883f91716.ll (mutant of shl-cttz.ll)shl_cttz_i32-mtriple=riscv64 -mattr=+zfinx -O1 -verify-machineinstrs
xcvbitmanip.2963fed7d5.ll (mutant of xcvbitmanip.ll)test.cv.fl1-mtriple=riscv32 -verify-machineinstrs -mattr=+xcvbitmanip,+zdinx -O1

Generated 2026-11-29 14:49 UTC.