fallback: translate: mul i8

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: mul i8 M
Occurrences:7 in 7 configs, 5 test files, 24 more counted only
Snippet from:attributes-thead.e90e2d9493.ll (mutant of attributes-thead.ll) @addi via llvm-extract
Config:-mtriple=riscv64 -mattr=+zfinx -O2 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i8

define i32 @addi(i32 %a) {
  %B = mul i8 42, -1
  %1 = add i32 %a, 1
  %C = fcmp ord half +inf, 0.000000e+00
  store i8 %B, ptr @G, align 1
  store i1 %C, ptr poison, align 1
  ret i32 %1
}

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: mul: '  %B = mul i8 42, -1' (in function: addi)
warning: Instruction selection used fallback path for addi

Occurrences (7):

InputFunctionConfig
attributes-thead.e90e2d9493.ll (mutant of attributes-thead.ll)addi-mtriple=riscv64 -mattr=+zfinx -O2 -verify-machineinstrs
mul.72c3fa1e6d.ll (mutant of mul.ll)mulsub_demand_2-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zdinx -O0
rv64xtheadbb.4b645f4083.ll (mutant of rv64xtheadbb.ll)ctlz_zero_poison_i8-mtriple=riscv64 -mattr=+xtheadbb,+zfinx -O2 -verify-machineinstrs
ssub_sat_plus.be228b53d7.ll (mutant of ssub_sat_plus.ll)func8-mtriple=riscv32 -mattr=+m,+zbb,+zhinx -O3 -verify-machineinstrs
ssub_sat_plus.fec28416c9.ll (mutant of ssub_sat_plus.ll)func8-mtriple=riscv32 -mattr=+m,+zbb,+zhinx,+zihintpause -O0 -verify-machineinstrs
uadd_sat_plus.b50b993a0f.ll (mutant of uadd_sat_plus.ll)func8-mtriple=riscv64 -mattr=+m,+zdinx,+a -O2 -code-model=medium -verify-machineinstrs
uadd_sat_plus.fb61e38116.ll (mutant of uadd_sat_plus.ll)func8-mtriple=riscv64 -mattr=+m,+zbb,+zbkb,+zfinx -O0 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.