fallback: legalize: G_ASHR <8 x s32>

Run:explore-bc8218b282-20261015-075519
Kind:fallback
Category:legalize: G_ASHR <8 x s32>
Occurrences:2 in 2 configs, 1 test files
Snippet from:smulh.ll @smulh_v8i16 via llvm-extract
Config:-mtriple=riscv32 -mattr=+m
Local check:reproduces at bc8218b282
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define <8 x i16> @smulh_v8i16(<8 x i16> %x, <8 x i16> %y) #0 {
  %r = call <8 x i16> @llvm.smulh.v8i16(<8 x i16> %x, <8 x i16> %y)
  ret <8 x i16> %r
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x i16> @llvm.smulh.v8i16(<8 x i16>, <8 x i16>) #1

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

Reproduce:

llc -mtriple=riscv32 -mattr=+m -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %33:_(<8 x s32>) = G_ASHR %30:_, %32:_(<8 x s32>) (in function: smulh_v8i16)
warning: Instruction selection used fallback path for smulh_v8i16

Occurrences (2):

InputFunctionConfig
smulh.llsmulh_v8i16-mtriple=riscv32 -mattr=+m
smulh.llsmulh_v8i16-mtriple=riscv64 -mattr=+m

Generated 2026-10-15 08:05 UTC.