fallback: translate: mul i64

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: mul i64 M
Occurrences:8 in 8 configs, 8 test files, 130 more counted only
Snippet from:mul-expand.c367fef908.ll (mutant of mul-expand.ll) @muli64_0x555 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+c -O1
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i64 @muli64_0x555(i64 %a) #0 {
  %a1 = mul i64 %a, 1365
  %B = udiv i64 %a, %a1
  ret i64 %B
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+c -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+c -O1 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: mul: '  %a1 = mul i64 %a, 1365' (in function: muli64_0x555)
warning: Instruction selection used fallback path for muli64_0x555

Occurrences (8):

InputFunctionConfig
and.c163f4a510.ll (mutant of and.ll)and64_0xfffffffffffffa00-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx,+m -O1
ctlz-cttz-ctpop.ebcfa44a43.ll (mutant of ctlz-cttz-ctpop.ll)test_ctlz_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zbb,+zdinx -O2
float-imm.c3759bd43a.ll (mutant of float-imm.ll)undef-mtriple=riscv64 -verify-machineinstrs -target-abi=lp64 -mattr=+zfinx -O1
fpenv-xlen.dad81b6846.ll (mutant of fpenv-xlen.ll)func_set_fpenv-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx -O2
mul-expand.c367fef908.ll (mutant of mul-expand.ll)muli64_0x555-mtriple=riscv64 -verify-machineinstrs -mattr=+zfinx,+c -O1
uadd_sat_plus.f68224d2f0.ll (mutant of uadd_sat_plus.ll)func64-mtriple=riscv32 -mattr=+m,+zhinx -O3 -verify-machineinstrs
umulh.5dab97a6e5.ll (mutant of umulh.ll)umulh_i64-mtriple=riscv64 -mattr=+zhinx -O0 -code-model=small -verify-machineinstrs
unaligned-load-store.951afda45d.ll (mutant of unaligned-load-store.ll)store_i24-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zdinx -O3

Generated 2026-11-29 14:49 UTC.