fallback: translate: mul i8~

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: mul i8~ M
Occurrences:4 in 4 configs, 4 test files, 4 more counted only
Snippet from:sadd_sat_plus.6356a1b13c.ll (mutant of sadd_sat_plus.ll) @func4 via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+zicond,+zdinx -O0 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i4 @func4(i4 %x, i4 %y, i4 %z) #0 {
  %a = mul i4 %y, %z
  %tmp = call i4 @llvm.sadd.sat.i4(i4 %x, i4 %a)
  store i4 %tmp, ptr poison, align 1
  ret i4 %tmp
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i4 @llvm.sadd.sat.i4(i4, i4) #1

attributes #0 = { nounwind }
attributes #1 = { nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none) }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: mul: '  %a = mul i4 %y, %z' (in function: func4)
warning: Instruction selection used fallback path for func4

Occurrences (4):

InputFunctionConfig
sadd_sat_plus.6356a1b13c.ll (mutant of sadd_sat_plus.ll)func4-mtriple=riscv32 -mattr=+m,+zicond,+zdinx -O0 -verify-machineinstrs
ssub_sat.19469867eb.ll (mutant of ssub_sat.ll)func3-mtriple=riscv64 -mattr=+m,+zdinx -O3 -code-model=medium -verify-machineinstrs
uadd_sat_plus.b50b993a0f.ll (mutant of uadd_sat_plus.ll)func4-mtriple=riscv64 -mattr=+m,+zdinx,+a -O2 -code-model=medium -verify-machineinstrs
usub_sat_plus.92b64acd73.ll (mutant of usub_sat_plus.ll)func4-mtriple=riscv64 -mattr=+m,+zdinx -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.