fallback: translate: mul i32

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: mul i32 M
Occurrences:8 in 8 configs, 8 test files, 132 more counted only
Snippet from:rv32zba.4605799a94.ll (mutant of rv32zba.ll) @mul41 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1 -code-model=medium
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

define i32 @mul41(i32 %a) {
  %c = mul i32 %a, 41
  %B = sub i32 %c, 65536
  store i32 %B, ptr poison, align 4
  ret i32 %c
}

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1 -code-model=medium -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1 -code-model=medium -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: mul: '  %c = mul i32 %a, 41' (in function: mul41)
warning: Instruction selection used fallback path for mul41

Occurrences (8):

InputFunctionConfig
codemodel-lowering.c2676819b3.ll (mutant of codemodel-lowering.ll)lower_constantpool-mtriple=riscv64 -target-abi=lp64 -verify-machineinstrs -mattr=+zfinx,+zhinx -O1
fixed-vectors-vssubu.609020f6a5.ll (mutant of fixed-vectors-vssubu.ll)usub_v2i16_vx-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O3
half-convert.59e5bc6add.ll (mutant of half-convert.ll)fcvt_h_w_load-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zdinx,+zhinx -O0
rv32zba.4605799a94.ll (mutant of rv32zba.ll)mul41-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1 -code-model=medium
rv64zbb-zbkb.3a9448c1c2.ll (mutant of rv64zbb-zbkb.ll)ror_i32-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zdinx,+zbb -O3
short-forward-branch-opt-zibi.ab94fba372.ll (mutant of short-forward-branch-opt-zibi.ll)select_eq_xor-mtriple=riscv64 -verify-machineinstrs -mattr=+zhinx -O1
uadd_sat_plus.fb61e38116.ll (mutant of uadd_sat_plus.ll)func32-mtriple=riscv64 -mattr=+m,+zbb,+zbkb,+zfinx -O0 -verify-machineinstrs
xqcicm.79041435ed.ll (mutant of xqcicm.ll)select_cc_example_slt-mtriple=riscv32 -verify-machineinstrs -mattr=+xqcicm,+xqcics,+xtheadba,+zfinx -O1

Generated 2026-11-29 14:49 UTC.