fallback: translate: add i16

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: add i16 M
Occurrences:6 in 5 configs, 5 test files, 39 more counted only
Snippet from:uadd_sat_plus.0449525fb0.ll (mutant of uadd_sat_plus.ll) @func16 via llvm-extract
Config:-mtriple=riscv32 -mattr=+m,+zbb,+zdinx -O2 -code-model=medium -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i16 @func16(i16 %x, i16 %y, i16 %z) #0 {
  %B = add i16 %x, 256
  %B2 = xor i16 42, %B
  ret i16 %B2
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv32 -mattr=+m,+zbb,+zdinx -O2 -code-model=medium -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv32 -mattr=+m,+zbb,+zdinx -O2 -code-model=medium -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

remark: <unknown>:0:0: unable to translate instruction: add: '  %B = add i16 %x, 256' (in function: func16)
warning: Instruction selection used fallback path for func16

Occurrences (6):

InputFunctionConfig
fixed-vectors-vssubu.0a4510af09.ll (mutant of fixed-vectors-vssubu.ll)usub_v16i16_vx-mtriple=riscv32 -verify-machineinstrs -mattr=+zdinx -O3
lack-of-signed-truncation-check.bf6140116a.ll (mutant of lack-of-signed-truncation-check.ll)add_ugecmp_bad_i8_i16-mtriple=riscv32-unknown-linux-gnu -mattr=+zfinx,+c -O0 -code-model=small -verify-machineinstrs
signed-truncation-check.4c44029517.ll (mutant of signed-truncation-check.ll)add_ultcmp_i16_i8-mtriple=riscv32-unknown-linux-gnu -mattr=+zbb,+zfinx -O1 -verify-machineinstrs
signed-truncation-check.4c44029517.ll (mutant of signed-truncation-check.ll)add_ultcmp_bad_i16_i8_cmp-mtriple=riscv32-unknown-linux-gnu -mattr=+zbb,+zfinx -O1 -verify-machineinstrs
uadd_sat_plus.0449525fb0.ll (mutant of uadd_sat_plus.ll)func16-mtriple=riscv32 -mattr=+m,+zbb,+zdinx -O2 -code-model=medium -verify-machineinstrs
xqcisls.525f7fd948.ll (mutant of xqcisls.ll)srh-mtriple=riscv32 -verify-machineinstrs -mattr=+zhinx,+zcb -O1

Generated 2026-11-29 14:49 UTC.