fallback: translate: sext i16

Run:explore-d9924131a4-20261128-105811
Kind:fallback
Category:translate: sext i16 M
Occurrences:5 in 5 configs, 4 test files, 14 more counted only
Snippet from:rv32xtheadbb.7ce7092918.ll (mutant of rv32xtheadbb.ll) @sext_sextinreg_sra_2 via llvm-extract
Config:-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zdinx -O3
Local check:reproduces at d9924131a4
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i32 @sext_sextinreg_sra_2(i16 %a) #0 {
  %sext = sext i16 %a to i32
  %shr = ashr exact i32 24, %sext
  ret i32 %shr
}

attributes #0 = { nounwind }

Reproduce:

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

Local llc output:

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

Occurrences (5):

InputFunctionConfig
abds-neg.c96955eb7f.ll (mutant of abds-neg.ll)abd_ext_i16_undef-mtriple=riscv32 -mattr=+zvbb,+zhinx -O3 -verify-machineinstrs
avgfloors.8b49fabc84.ll (mutant of avgfloors.ll)test_ext_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx -O1
rv32xtheadbb.7ce7092918.ll (mutant of rv32xtheadbb.ll)sext_sextinreg_sra_2-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zdinx -O3
rv32xtheadbb.bec734ce8a.ll (mutant of rv32xtheadbb.ll)sext_sextinreg_sra-mtriple=riscv32 -verify-machineinstrs -mattr=+xtheadbb,+zhinx -O0
rvp-scalar.0a5170ef26.ll (mutant of rvp-scalar.ll)macc_h00-mtriple=riscv64 -mattr=+experimental-p,+zfinx -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.