fallback: translate: mul i8~

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: mul i8~ M
Occurrences:3 in 3 configs, 3 test files, 6 more counted only
Snippet from:uadd_sat_plus.cf58eb638b.ll (mutant of uadd_sat_plus.ll) @func4 via llvm-extract
Config:-mtriple=riscv32 -mattr=+zfinx -O3 -verify-machineinstrs
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.4 = external global i4

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

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

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

Reproduce:

llc -mtriple=riscv32 -mattr=+zfinx -O3 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+zfinx -O3 -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 (3):

InputFunctionConfig
sadd_sat_plus.e57887541a.ll (mutant of sadd_sat_plus.ll)func4-mtriple=riscv64 -mattr=+zfinx -O0 -verify-machineinstrs
uadd_sat_plus.cf58eb638b.ll (mutant of uadd_sat_plus.ll)func4-mtriple=riscv32 -mattr=+zfinx -O3 -verify-machineinstrs
usub_sat_plus.759e3947ff.ll (mutant of usub_sat_plus.ll)func4-mtriple=riscv32 -mattr=+m,+zdinx -O1 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.