fallback: translate: lshr i16
| Run: | explore-b577f07195-20261129-105236 |
| Kind: | fallback |
| Category: | translate: lshr i16 M |
| Occurrences: | 3 in 3 configs, 3 test files, 39 more counted only |
| Snippet from: | attributes.2e9e1879bc.ll (mutant of attributes.ll) @addi via llvm-extract |
| Config: | -mtriple=riscv64 -mattr=+zalasr,+zhinx -O0 -verify-machineinstrs |
| Local check: | reproduces at b577f07195 |
| Compiler Explorer: | not uploaded (over --godbolt-limit or disabled) |
Snippet:
@G.2 = external global i16
define i32 @addi(i32 %a) {
%B = lshr i16 -32768, 0
%1 = add i32 %a, 1
store i16 %B, ptr @G.2, align 2
ret i32 %1
}
Reproduce:
llc -mtriple=riscv64 -mattr=+zalasr,+zhinx -O0 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -mattr=+zalasr,+zhinx -O0 -verify-machineinstrs -global-isel=0 snippet.ll -o -
Local llc output:
remark: <unknown>:0:0: unable to translate instruction: lshr: ' %B = lshr i16 -32768, 0' (in function: addi)
warning: Instruction selection used fallback path for addi
Occurrences (3):
| Input | Function | Config |
|---|
| attributes.2e9e1879bc.ll (mutant of attributes.ll) | addi | -mtriple=riscv64 -mattr=+zalasr,+zhinx -O0 -verify-machineinstrs |
| init-array.67b0bf54eb.ll (mutant of init-array.ll) | _GLOBAL__I_a | -mtriple=riscv32-unknown-linux-gnu -verify-machineinstrs -use-ctors -mattr=+zdinx -O3 |
| signed-truncation-check.576892d244.ll (mutant of signed-truncation-check.ll) | add_ultcmp_bad_i8_i16 | -mtriple=riscv64-unknown-linux-gnu -mattr=+zfinx,+zicond -O0 -verify-machineinstrs |
Generated 2026-11-29 14:49 UTC.