fallback: translate: lshr i8

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: lshr i8 M
Occurrences:3 in 3 configs, 3 test files, 17 more counted only
Snippet from:imm.976b39f4a1.ll (mutant of imm.ll) @PR54812 via llvm-extract
Config:-mtriple=riscv64 -riscv-constant-pool-for-large-ints=0 -verify-machineinstrs -mattr=+zhinx -O0
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G.2 = external global i8

define i64 @PR54812() {
  %B = lshr i8 127, 42
  store i8 %B, ptr @G.2, align 1
  ret i64 -2158497792
}

Reproduce:

llc -mtriple=riscv64 -riscv-constant-pool-for-large-ints=0 -verify-machineinstrs -mattr=+zhinx -O0 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -riscv-constant-pool-for-large-ints=0 -verify-machineinstrs -mattr=+zhinx -O0 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: lshr: '  %B = lshr i8 127, 42' (in function: PR54812)
warning: Instruction selection used fallback path for PR54812

Occurrences (3):

InputFunctionConfig
half-convert-strict.a2482984fd.ll (mutant of half-convert-strict.ll)fcvt_l_h-mtriple=riscv32 -verify-machineinstrs -target-abi ilp32 -disable-strictnode-mutation -mattr=+zdinx,+zhinxmin -O2
imm.976b39f4a1.ll (mutant of imm.ll)PR54812-mtriple=riscv64 -riscv-constant-pool-for-large-ints=0 -verify-machineinstrs -mattr=+zhinx -O0
vararg.e8ea7ae4c7.ll (mutant of vararg.ll)va3_caller-mtriple=riscv32 -verify-machineinstrs -frame-pointer=all -mattr=+zfinx,+zvbb -O3

Generated 2026-11-29 14:49 UTC.