fallback: translate: udiv i16
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: udiv i16 M |
| Occurrences: | 3 in 3 configs, 3 test files, 38 more counted only |
| Snippet from: | div-by-constant.37a2bb0cd3.ll (mutant of div-by-constant.ll) @udiv16_constant_no_add via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx,+zvbb -O0 |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G = external global i16
; Function Attrs: nounwind
define i16 @udiv16_constant_no_add(i16 %a) #0 {
%1 = udiv i16 %a, 5
%B = xor i16 %1, %a
store i16 %B, ptr @G, align 2
ret i16 %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx,+zvbb -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx,+zvbb -O0 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: udiv: ' %1 = udiv i16 %a, 5' (in function: udiv16_constant_no_add)
warning: Instruction selection used fallback path for udiv16_constant_no_add
Occurrences (3):
| Input | Function | Config |
|---|
| atomicrmw-max-min-umax-umin.28fa6c9854.ll (mutant of atomicrmw-max-min-umax-umin.ll) | atomicrmw_min_i16_seq_cst | -mtriple=riscv64 -mattr=+a,+m,+zdinx -O1 -verify-machineinstrs |
| div-by-constant.37a2bb0cd3.ll (mutant of div-by-constant.ll) | udiv16_constant_no_add | -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zhinx,+zvbb -O0 |
| half-convert-strict.cbecf41c0e.ll (mutant of half-convert-strict.ll) | fcvt_h_ui_zeroext | -mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -disable-strictnode-mutation -mattr=+zdinx,+zhinxmin -O0 |
Generated 2026-11-29 14:49 UTC.