fallback: translate: ashr i16

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: ashr i16 M
Occurrences:5 in 5 configs, 4 test files, 24 more counted only
Snippet from:alu16.b732e03e24.ll (mutant of alu16.ll) @slt via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zve32x -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i16 @slt(i16 %a, i16 %b) #0 {
  %B = ashr i16 %b, -1
  ret i16 %B
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zve32x -O1 -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zve32x -O1 -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (5):

InputFunctionConfig
alu16.b732e03e24.ll (mutant of alu16.ll)slt-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx,+zve32x -O1
rv64p.3ba07c61f1.ll (mutant of rv64p.ll)cls_i16-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O3
rv64p.3cf2763fb1.ll (mutant of rv64p.ll)cls_i16-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O1
rv64xtheadbb.06647407e4.ll (mutant of rv64xtheadbb.ll)ctlz_zero_poison_i16-mtriple=riscv64 -mattr=+zhinx -O2 -verify-machineinstrs
rvp-scalar.5c274220.a6e1e7f505.ll (mutant of rvp-scalar.5c274220.ll)slli_i64_large-mtriple=riscv64 -verify-machineinstrs -mattr=+experimental-p,+zfinx,+zbb -O3

Generated 2026-11-29 14:49 UTC.