fallback: legalize: G_SMULH s4
| Run: | explore-bc8218b282-20261015-075519 |
| Kind: | fallback |
| Category: | legalize: G_SMULH s4 |
| Occurrences: | 4 in 2 configs, 1 test files |
| Snippet from: | srem-seteq-illegal-types.ll @test_srem_even 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 i1 @test_srem_even(i4 %X) #0 {
%srem = srem i4 %X, 6
%cmp = icmp eq i4 %srem, 1
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: %10:_(s4) = G_SMULH %0:_, %7:_ (in function: test_srem_even)
warning: Instruction selection used fallback path for test_srem_even
Occurrences (4):
Generated 2026-10-15 08:05 UTC.