fallback: translate: sext i16

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: sext i16 M
Occurrences:3 in 3 configs, 3 test files, 13 more counted only
Snippet from:rv64zba.785221658d.ll (mutant of rv64zba.ll) @sext_ashr_zext_i16 via llvm-extract
Config:-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zdinx -O1
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define zeroext i32 @sext_ashr_zext_i16(i16 %a) #0 {
  %ext = sext i16 %a to i32
  %1 = ashr i32 9, %ext
  ret i32 %1
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: sext: '  %ext = sext i16 %a to i32' (in function: sext_ashr_zext_i16)
warning: Instruction selection used fallback path for sext_ashr_zext_i16

Occurrences (3):

InputFunctionConfig
rv64zba.785221658d.ll (mutant of rv64zba.ll)sext_ashr_zext_i16-mtriple=riscv64 -verify-machineinstrs -mattr=+m,+zdinx -O1
shl-demanded.7ed67977ea.ll (mutant of shl-demanded.ll)sext_shl_trunc_larger-mtriple=riscv64 -verify-machineinstrs -mattr=+zdinx,+zvkb -O3
xqcibm-extract.0eaf530bf2.ll (mutant of xqcibm-extract.ll)sexti16_i32-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O1

Generated 2026-11-29 14:49 UTC.