fallback: translate: mul i16

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: mul i16 M
Occurrences:5 in 5 configs, 5 test files, 27 more counted only
Snippet from:alu16.1242d6e039.ll (mutant of alu16.ll) @sll via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zvkb,+zfinx -O2 -code-model=medium
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i16 @sll(i16 %a, i16 %b) #0 {
  %B = mul i16 %a, %a
  %1 = shl i16 %a, %b
  store i16 %B, ptr poison, align 2
  ret i16 %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

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

Occurrences (5):

InputFunctionConfig
alu16.1242d6e039.ll (mutant of alu16.ll)sll-mtriple=riscv64 -verify-machineinstrs -mattr=+zvkb,+zfinx -O2 -code-model=medium
branch-relaxation-rv32.5bc25b2184.ll (mutant of branch-relaxation-rv32.ll)relax_bcc-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O3
min-max.02ed294c90.ll (mutant of min-max.ll)smax_i32_pos_constant-mtriple=riscv32 -mattr=+zfinx -O3 -verify-machineinstrs
ssub_sat_plus.6dafcb587c.ll (mutant of ssub_sat_plus.ll)func16-mtriple=riscv32 -mattr=+m,+zhinx,+zicond -O2 -verify-machineinstrs
ucmp.3541d8717e.ll (mutant of ucmp.ll)ucmp.8.16-mtriple=riscv64 -mattr=+zfinx,+zbkb -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.