fallback: translate: ashr i8

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: ashr i8 M
Occurrences:3 in 3 configs, 3 test files, 23 more counted only
Snippet from:select.344057b3c6.ll (mutant of select.ll) @select_sub_3 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+xqcicm,+xqcics,+xqcicli,+zca,+short-forward-branch-ialu,+conditional-cmv-fusion,+zhinx -O2
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

@G = external global i8

define i32 @select_sub_3(i1 zeroext %cond, i32 %a) {
entry:
  %B = ashr i8 127, 1
  %c = sub i32 %a, 42
  %res = select i1 %cond, i32 %a, i32 %c
  store i8 %B, ptr @G, align 1
  ret i32 %res
}

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+xqcicm,+xqcics,+xqcicli,+zca,+short-forward-branch-ialu,+conditional-cmv-fusion,+zhinx -O2 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+m,+xqcicm,+xqcics,+xqcicli,+zca,+short-forward-branch-ialu,+conditional-cmv-fusion,+zhinx -O2 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (3):

InputFunctionConfig
bswap-bitreverse.e727fb5f50.ll (mutant of bswap-bitreverse.ll)test_bswap_i64-mtriple=riscv64 -verify-machineinstrs -mattr=+zbkb,+zfinx,+m -O1
half-bitmanip-dagcombines.52c8374824.ll (mutant of half-bitmanip-dagcombines.ll)fcopysign_fneg-mtriple=riscv64 -target-abi lp64 -verify-machineinstrs -mattr=+zdinx -O0 -code-model=medium
select.344057b3c6.ll (mutant of select.ll)select_sub_3-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+xqcicm,+xqcics,+xqcicli,+zca,+short-forward-branch-ialu,+conditional-cmv-fusion,+zhinx -O2

Generated 2026-11-29 14:49 UTC.