fallback: translate: add i16

Run:explore-b577f07195-20261129-105236
Kind:fallback
Category:translate: add i16 M
Occurrences:6 in 6 configs, 4 test files, 63 more counted only
Snippet from:lack-of-signed-truncation-check.90cb8e73de.ll (mutant of lack-of-signed-truncation-check.ll) @add_ugtcmp_bad_i16_i8 via llvm-extract
Config:-mtriple=riscv64-unknown-linux-gnu -mattr=+zhinx,+c -O1 -verify-machineinstrs
Local check:reproduces at b577f07195
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i1 @add_ugtcmp_bad_i16_i8(i16 %x) #0 {
  %tmp0 = add i16 %x, 128
  %tmp1 = icmp ugt i16 %tmp0, -1
  %B = xor i16 %tmp0, 1
  store i16 %B, ptr poison, align 2
  ret i1 %tmp1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64-unknown-linux-gnu -mattr=+zhinx,+c -O1 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64-unknown-linux-gnu -mattr=+zhinx,+c -O1 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (6):

InputFunctionConfig
bswap-bitreverse.7c8b384b6a.ll (mutant of bswap-bitreverse.ll)test_bitreverse_bswap_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zbkb,+zve32x,+zhinx -O1
lack-of-signed-truncation-check.21e7c16ec4.ll (mutant of lack-of-signed-truncation-check.ll)add_ugecmp_bad_i16_i8_cmp-mtriple=riscv32-unknown-linux-gnu -mattr=+zbb,+zfinx -O1 -verify-machineinstrs
lack-of-signed-truncation-check.90cb8e73de.ll (mutant of lack-of-signed-truncation-check.ll)add_ugtcmp_bad_i16_i8-mtriple=riscv64-unknown-linux-gnu -mattr=+zhinx,+c -O1 -verify-machineinstrs
lack-of-signed-truncation-check.b201769217.ll (mutant of lack-of-signed-truncation-check.ll)add_ugecmp_bad_i16_i8_c0notpoweroftwo-mtriple=riscv64-unknown-linux-gnu -mattr=+zdinx -O3 -verify-machineinstrs
orc-b-patterns.b6342adecb.ll (mutant of orc-b-patterns.ll)orc_b_i32_sub_shl8x_x_b6-mtriple=riscv64 -verify-machineinstrs -mattr=+zbb,+zhinx -O1
signed-truncation-check.541e0c2239.ll (mutant of signed-truncation-check.ll)add_ulecmp_bad_i16_i8-mtriple=riscv32-unknown-linux-gnu -mattr=+zdinx -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.