fallback: translate: lshr i16
| Run: | explore-d9924131a4-20261128-105811 |
| Kind: | fallback |
| Category: | translate: lshr i16 M |
| Occurrences: | 5 in 5 configs, 5 test files, 31 more counted only |
| Snippet from: | half-convert.35a8f56a86.ll (mutant of half-convert.ll) @bitcast_h_i16 via llvm-extract |
| Config: | -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1 |
| Local check: | reproduces at d9924131a4 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
; Function Attrs: nounwind
define half @bitcast_h_i16(i16 %a) #0 {
%B = lshr i16 %a, 32767
%1 = bitcast i16 %B to half
ret half %1
}
attributes #0 = { nounwind }
Reproduce:
llc -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1 -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: lshr: ' %B = lshr i16 %a, 32767' (in function: bitcast_h_i16)
warning: Instruction selection used fallback path for bitcast_h_i16
Occurrences (5):
| Input | Function | Config |
|---|
| abds-neg.07b76dcd40.ll (mutant of abds-neg.ll) | abd_minmax_i16 | -mtriple=riscv32 -mattr=+zdinx -O3 -verify-machineinstrs |
| half-convert.35a8f56a86.ll (mutant of half-convert.ll) | bitcast_h_i16 | -mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -mattr=+zhinx -O1 |
| min-max.86da069edc.ll (mutant of min-max.ll) | umax_i16 | -mtriple=riscv32 -mattr=+short-forward-branch-ialu,+zbs,+zfinx -O3 -verify-machineinstrs |
| shlimm-addimm.da714a7df5.ll (mutant of shlimm-addimm.ll) | shl5_sub47969_a | -mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx -O2 |
| zdinx-boundary-check.49f2a130a8.ll (mutant of zdinx-boundary-check.ll) | foo11 | -mtriple=riscv32 -verify-machineinstrs -target-abi=ilp32 -mattr=+zdinx,+unaligned-scalar-mem -O0 -code-model=small |
Generated 2026-11-29 14:49 UTC.