fallback: translate: mul i64

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: mul i64 M
Occurrences:4 in 3 configs, 3 test files, 71 more counted only
Snippet from:rv32-move-merge.9e96e3b40b.ll (mutant of rv32-move-merge.ll) @mv_to_fmv via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+experimental-p,+zdinx -O3
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

declare void @foo()

; Function Attrs: nounwind
define i64 @mv_to_fmv(i64 %a, i64 %b) #0 {
  %B = mul i64 %a, %a
  %1 = add i64 %B, %b
  call void @foo()
  ret i64 %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+experimental-p,+zdinx -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+experimental-p,+zdinx -O3 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
add-imm64-to-sub.9ab2766850.ll (mutant of add-imm64-to-sub.ll)reuse_mul_splat_const-mtriple=riscv64 -mattr=+zbb,+zbs,+zhinx -O1 -verify-machineinstrs
mul.e644bfc222.ll (mutant of mul.ll)muli64_p68-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O0 -code-model=small
mul.e644bfc222.ll (mutant of mul.ll)muli64_m3840-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O0 -code-model=small
rv32-move-merge.9e96e3b40b.ll (mutant of rv32-move-merge.ll)mv_to_fmv-mtriple=riscv32 -verify-machineinstrs -mattr=+experimental-p,+zdinx -O3

Generated 2026-11-29 14:49 UTC.