fallback: legalize: G_SMULH s16

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

Snippet:

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

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

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

Occurrences (8):

InputFunctionConfig
div.llsdiv16_constant-mtriple=riscv64 -verify-machineinstrs
smulh.llsmulh_i16-mtriple=riscv32
smulh.llsmulh_i16-mtriple=riscv64
branch_zero.36feb089f6.ll (mutant of branch_zero.ll)bar-mtriple=riscv64 -verify-machineinstrs
bswap-shift.25df4fcac9.ll (mutant of bswap-shift.ll)test_bswap_shli_7_bswap_i16-mtriple=riscv64 -mattr=+zbkb -verify-machineinstrs
bswap-shift.40d2b4cd41.ll (mutant of bswap-shift.ll)test_bswap_shli_7_bswap_i16-mtriple=riscv64 -mattr=+zbb -verify-machineinstrs
div.eba9ddca6f.ll (mutant of div.ll)sdiv16_constant-mtriple=riscv64 -verify-machineinstrs
load-setcc-combine.fbce033f05.ll (mutant of load-setcc-combine.ll)zext_nonneg_load_i16-mtriple=riscv64

Generated 2026-10-15 08:05 UTC.