fallback: translate: mul i8~

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: mul i8~ M
Occurrences:3 in 3 configs, 2 test files, 11 more counted only
Snippet from:uadd_sat_plus.23923b7086.ll (mutant of uadd_sat_plus.ll) @func4 via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+zbb,+zhinx -O1 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i1

; 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)
  %C = icmp sge i4 %tmp, %z
  store i1 %C, ptr @G, 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=+m,+zbb,+zhinx -O1 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+zbb,+zhinx -O1 -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.f869d567f5.ll (mutant of sadd_sat_plus.ll)func4-mtriple=riscv32 -mattr=+zfinx -O1 -verify-machineinstrs
uadd_sat_plus.23923b7086.ll (mutant of uadd_sat_plus.ll)func4-mtriple=riscv32 -mattr=+m,+zbb,+zhinx -O1 -verify-machineinstrs
uadd_sat_plus.f68224d2f0.ll (mutant of uadd_sat_plus.ll)func4-mtriple=riscv32 -mattr=+m,+zhinx -O3 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.