fallback: legalize: G_SMULH s29

Run:main-04ca53e65f-20261014-113325
Kind:fallback
Category:legalize: G_SMULH s29
Occurrences:6 in 2 configs, 1 test files
Snippet from:srem-seteq-illegal-types.ll @test_srem_odd via llvm-extract
Config:-mtriple=riscv32
Local check:reproduces at 04ca53e65f
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i1 @test_srem_odd(i29 %X) #0 {
  %srem = srem i29 %X, 99
  %cmp = icmp eq i29 %srem, 0
  ret i1 %cmp
}

attributes #0 = { nounwind }

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: %11:_(s29) = G_SMULH %0:_, %7:_ (in function: test_srem_odd)
warning: Instruction selection used fallback path for test_srem_odd

Occurrences (6):

InputFunctionConfig
srem-seteq-illegal-types.lltest_srem_odd-mtriple=riscv32
srem-seteq-illegal-types.lltest_srem_odd-mtriple=riscv64
srem-seteq-illegal-types.328d0c2d23.ll (mutant of srem-seteq-illegal-types.ll)test_srem_odd-mtriple=riscv32
srem-seteq-illegal-types.7bbda01b95.ll (mutant of srem-seteq-illegal-types.ll)test_srem_odd-mtriple=riscv32
srem-seteq-illegal-types.a673888880.ll (mutant of srem-seteq-illegal-types.ll)test_srem_odd-mtriple=riscv64
srem-seteq-illegal-types.d008018f68.ll (mutant of srem-seteq-illegal-types.ll)test_srem_odd-mtriple=riscv64

Generated 2026-10-15 08:05 UTC.