fallback: legalize: G_UMULH s16
| Run: | explore-04ca53e65f-20261014-114124 |
| Kind: | fallback |
| Category: | legalize: G_UMULH s16 |
| Occurrences: | 10 in 4 configs, 3 test files |
| Snippet from: | div.ll @udiv16_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 i16 @udiv16_constant(i16 %a) #0 {
%1 = udiv i16 %a, 5
ret i16 %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:_(s16) = G_UMULH %0:_, %6:_ (in function: udiv16_constant)
warning: Instruction selection used fallback path for udiv16_constant
Occurrences (10):
| Input | Function | Config |
|---|
| div.ll | udiv16_constant | -mtriple=riscv32 -verify-machineinstrs |
| div.ll | udiv16_constant | -mtriple=riscv64 -verify-machineinstrs |
| umulh.ll | umulh_i16 | -mtriple=riscv32 |
| umulh.ll | umulh_i16 | -mtriple=riscv64 |
| div.d276db74af.ll (mutant of div.ll) | udiv16_constant | -mtriple=riscv64 -verify-machineinstrs |
| div.e2caddb89d.ll (mutant of div.ll) | udiv16_constant | -mtriple=riscv32 -verify-machineinstrs |
| rem.1d1073d103.ll (mutant of rem.ll) | urem16_constant_lhs | -mtriple=riscv32 -verify-machineinstrs |
| rem.637b131023.ll (mutant of rem.ll) | urem16_constant_lhs | -mtriple=riscv64 -verify-machineinstrs |
| umulh.5359f7c7fe.ll (mutant of umulh.ll) | umulh_i16 | -mtriple=riscv64 |
| umulh.6ebedd31d5.ll (mutant of umulh.ll) | umulh_i16 | -mtriple=riscv32 |
Generated 2026-10-15 08:05 UTC.