fallback: translate: sdiv i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: sdiv i32 M
Occurrences:6 in 6 configs, 6 test files, 73 more counted only
Snippet from:mul.e644bfc222.ll (mutant of mul.ll) @muli32_p12288 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O0 -code-model=small
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i32 @muli32_p12288(i32 %a) #0 {
  %B = sdiv i32 %a, %a
  %1 = mul i32 %B, 12288
  ret i32 %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O0 -code-model=small -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -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, %a' (in function: muli32_p12288)
warning: Instruction selection used fallback path for muli32_p12288

Occurrences (6):

InputFunctionConfig
div-pow2.e7049dac54.ll (mutant of div-pow2.ll)sdiv32_pow2_negative_65536-mtriple=riscv32 -verify-machineinstrs -mattr=+zba,+zhinx -O0
float-convert-strict.777343b9b0.ll (mutant of float-convert-strict.ll)fcvt_s_w-mtriple=riscv64 -verify-machineinstrs -disable-strictnode-mutation -target-abi=lp64 -mattr=+zfinx,+xtheadba -O3 -code-model=medium
machine-combiner-strategies.aa57802016.ll (mutant of machine-combiner-strategies.ll)test_local_strategy-mtriple=riscv32 -verify-machineinstrs -mcpu=syntacore-scr1-max -riscv-enable-machine-combiner=true -riscv-force-machine-combiner-strategy=local -mattr=+zfinx,+xtheadba -O2
mul.e644bfc222.ll (mutant of mul.ll)muli32_p12288-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O0 -code-model=small
rv64i-exhaustive-w-insts.ef8d4265a7.ll (mutant of rv64i-exhaustive-w-insts.ll)zext_addw_sext_zext-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O1 -code-model=medium
srem-lkk.ee90d2ca3b.ll (mutant of srem-lkk.ll)combine_srem_sdiv-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zhinx -O3

Generated 2026-11-29 14:49 UTC.