fallback: legalize: G_SMULH s8

Run:explore-bc8218b282-20261015-075519
Kind:fallback
Category:legalize: G_SMULH s8
Occurrences:6 in 4 configs, 3 test files
Snippet from:div.ll @sdiv8_constant via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs
Local check:reproduces at bc8218b282
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i8 @sdiv8_constant(i8 %a) #0 {
  %1 = sdiv i8 %a, 5
  ret i8 %1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %9:_(s8) = G_SMULH %0:_, %5:_ (in function: sdiv8_constant)
warning: Instruction selection used fallback path for sdiv8_constant

Occurrences (6):

InputFunctionConfig
div.llsdiv8_constant-mtriple=riscv32 -verify-machineinstrs
div.llsdiv8_constant-mtriple=riscv64 -verify-machineinstrs
div.16b6c83239.ll (mutant of div.ll)sdiv8_constant-mtriple=riscv32 -verify-machineinstrs
div.eba9ddca6f.ll (mutant of div.ll)sdiv8_constant-mtriple=riscv64 -verify-machineinstrs
freeze-load-zext-copytoreg.7bae108bdd.ll (mutant of freeze-load-zext-copytoreg.ll)freeze_i8_load_loop-mtriple=riscv64
pr65025.40ff2e1046.ll (mutant of pr65025.ll)cmpxchg_masked_and_branch1-mtriple=riscv64 -mattr=+a

Generated 2026-10-15 08:05 UTC.