fallback: translate: ashr i16

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: ashr i16 M
Occurrences:3 in 3 configs, 3 test files, 25 more counted only
Snippet from:shadowcallstack.0fd4588139.ll (mutant of shadowcallstack.ll) @f5 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+zimop,+zfinx,+zbkb -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

declare i32 @bar()

; Function Attrs: nounwind shadowcallstack
define i32 @f5() #0 {
  %B = ashr i16 42, 0
  %res = call i32 @bar()
  store i16 %B, ptr poison, align 2
  ret i32 %res
}

attributes #0 = { nounwind shadowcallstack }

Reproduce:

llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zimop,+zfinx,+zbkb -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64 -verify-machineinstrs -mattr=+zimop,+zfinx,+zbkb -O3 -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: ashr: '  %B = ashr i16 42, 0' (in function: f5)
warning: Instruction selection used fallback path for f5

Occurrences (3):

InputFunctionConfig
atomicrmw-and-or-xor.e300ec4bb2.ll (mutant of atomicrmw-and-or-xor.ll)atomicrmw_and_i16_release-mtriple=riscv64 -mattr=+a,+zfinx -O1 -verify-machineinstrs
avgfloors.79cebee602.ll (mutant of avgfloors.ll)test_ext_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O3 -code-model=medium
shadowcallstack.0fd4588139.ll (mutant of shadowcallstack.ll)f5-mtriple=riscv64 -verify-machineinstrs -mattr=+zimop,+zfinx,+zbkb -O3

Generated 2026-11-29 14:49 UTC.