fallback: translate: ashr i16

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: ashr i16 M
Occurrences:5 in 5 configs, 5 test files, 36 more counted only
Snippet from:shadowcallstack.069c4f4dbe.ll (mutant of shadowcallstack.ll) @f1_both via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zcb,+zhinx -O3
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: shadowcallstack
define void @f1_both() #0 {
  %B = ashr i16 42, 0
  store i16 %B, ptr poison, align 2
  ret void
}

attributes #0 = { shadowcallstack "hw-shadow-stack" }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zcb,+zhinx -O3 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zcb,+zhinx -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: f1_both)
warning: Instruction selection used fallback path for f1_both

Occurrences (5):

InputFunctionConfig
half-intrinsics.9ff956f63c.ll (mutant of half-intrinsics.ll)asin_f16-mtriple=riscv64 -verify-machineinstrs -target-abi lp64 -mattr=+zhinx,+zba,+zcb -O0 -code-model=medium
rv32zbb-zbkb.58c7bc8071.ll (mutant of rv32zbb-zbkb.ll)srai_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx,+zicond -O0
scmp.923cd5384f.ll (mutant of scmp.ll)scmp.8.16-mtriple=riscv32 -mattr=+zhinx -O1 -code-model=small -verify-machineinstrs
shadowcallstack.069c4f4dbe.ll (mutant of shadowcallstack.ll)f1_both-mtriple=riscv32 -verify-machineinstrs -mattr=+zcb,+zhinx -O3
xqcibm-extract.630c9d1e13.ll (mutant of xqcibm-extract.ll)sexti16_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O2

Generated 2026-11-29 14:49 UTC.