fallback: legalize: G_SMULH <2 x s32>

Run:main-bc8218b282-20261015-074651
Kind:fallback
Category:legalize: G_SMULH <2 x s32>
Occurrences:4 in 2 configs, 1 test files
Snippet from:smulh.ll @smulh_v2i32 via llvm-extract
Config:-mtriple=riscv32
Local check:reproduces at bc8218b282
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define <2 x i32> @smulh_v2i32(<2 x i32> %x, <2 x i32> %y) #0 {
  %r = call <2 x i32> @llvm.smulh.v2i32(<2 x i32> %x, <2 x i32> %y)
  ret <2 x i32> %r
}

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

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

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to legalize instruction: %6:_(<2 x s32>) = G_SMULH %0:_, %1:_ (in function: smulh_v2i32)
warning: Instruction selection used fallback path for smulh_v2i32

Occurrences (4):

InputFunctionConfig
smulh.llsmulh_v2i32-mtriple=riscv32
smulh.llsmulh_v2i32-mtriple=riscv64
smulh.0df5781649.ll (mutant of smulh.ll)smulh_v2i32-mtriple=riscv32
smulh.768b9b71f1.ll (mutant of smulh.ll)smulh_v2i32-mtriple=riscv64

Generated 2026-10-15 08:05 UTC.