fallback: legalize: G_SMULH s8
| Run: | explore-04ca53e65f-20261014-114124 |
| Kind: | fallback |
| Category: | legalize: G_SMULH s8 |
| Occurrences: | 2 in 2 configs, 1 test files |
| Snippet from: | div.ll @sdiv8_constant via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs |
| Local check: | reproduces at 04ca53e65f |
| 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:_(s8) = G_SMULH %0:_, %5:_ (in function: sdiv8_constant)
warning: Instruction selection used fallback path for sdiv8_constant
Occurrences (2):
| Input | Function | Config |
|---|
| div.ll | sdiv8_constant | -mtriple=riscv32 -verify-machineinstrs |
| div.ll | sdiv8_constant | -mtriple=riscv64 -verify-machineinstrs |
Generated 2026-10-15 08:05 UTC.