fallback: legalize: G_SMULH s64

Run:explore-bc8218b282-20261015-075519
Kind:fallback
Category:legalize: G_SMULH s64
Occurrences:10 in 1 configs, 2 test files
Snippet from:smulh.ll @smulh_i64 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 i64 @smulh_i64(i64 %x, i64 %y) #0 {
  %r = call i64 @llvm.smulh.i64(i64 %x, i64 %y)
  ret i64 %r
}

; Function Attrs: nocallback nocreateundeforpoison nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.smulh.i64(i64, i64) #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:_(s64) = G_SMULH %0:_, %1:_ (in function: smulh_i64)
warning: Instruction selection used fallback path for smulh_i64

Occurrences (10):

InputFunctionConfig
overflow-intrinsic-optimizations.llno__mulodi4-mtriple=riscv32
smulh.llsmulh_i64-mtriple=riscv32
smulh.llsmulh_v1i64-mtriple=riscv32
overflow-intrinsic-optimizations.c4f2ea37a2.ll (mutant of overflow-intrinsic-optimizations.ll)no__mulodi4-mtriple=riscv32
overflow-intrinsic-optimizations.e749872487.ll (mutant of overflow-intrinsic-optimizations.ll)no__mulodi4-mtriple=riscv32
overflow-intrinsic-optimizations.ebaa5e12e0.ll (mutant of overflow-intrinsic-optimizations.ll)no__mulodi4-mtriple=riscv32
overflow-intrinsic-optimizations.f928834888.ll (mutant of overflow-intrinsic-optimizations.ll)no__mulodi4-mtriple=riscv32
smulh.41b873bc27.ll (mutant of smulh.ll)smulh_v1i64-mtriple=riscv32
smulh.43980409a0.ll (mutant of smulh.ll)smulh_i64-mtriple=riscv32
smulh.f578ab5712.ll (mutant of smulh.ll)smulh_i64-mtriple=riscv32

Generated 2026-10-15 08:05 UTC.