fallback: legalize: G_SMULH
| Run: | main-d9924131a4-20261128-102057 |
| Kind: | fallback |
| Category: | legalize: G_SMULH |
| Occurrences: | 58 in 25 configs, 11 test files |
| Snippet from: | div.ll @sdiv8_constant via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define i8 @sdiv8_constant(i8 %a) #0 {
%1 = sdiv i8 %a, 5
ret i8 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to legalize instruction: %9:_(i8) = G_SMULH %0:_, %5:_ (in function: sdiv8_constant)
warning: Instruction selection used fallback path for sdiv8_constant
Occurrences (58) (first 15):
Generated 2026-11-29 14:49 UTC.