fallback: translate: and i16

Run:explore-db12fc36f6-20261127-115111
Kind:fallback
Category:translate: and i16 M
Occurrences:4 in 4 configs, 4 test files, 14 more counted only
Snippet from:signed-truncation-check.63747593eb.ll (mutant of signed-truncation-check.ll) @add_ultcmp_bad_i16_i8_magic via llvm-extract
Config:-mtriple=riscv64-unknown-linux-gnu -mattr=+zbb,+zvkb,+zdinx -O0 -verify-machineinstrs
Local check:reproduces at db12fc36f6
Compiler Explorer:not uploaded (over --godbolt-limit or disabled)

Snippet:

; Function Attrs: nounwind
define i1 @add_ultcmp_bad_i16_i8_magic(i16 %x) #0 {
  %B = and i16 %x, %x
  %tmp0 = add i16 %B, 64
  %tmp1 = icmp ult i16 %tmp0, 256
  ret i1 %tmp1
}

attributes #0 = { nounwind }

Reproduce:

llc -mtriple=riscv64-unknown-linux-gnu -mattr=+zbb,+zvkb,+zdinx -O0 -verify-machineinstrs -global-isel -global-isel-abort=2 -pass-remarks-missed=gisel.* snippet.ll -o -
llc -mtriple=riscv64-unknown-linux-gnu -mattr=+zbb,+zvkb,+zdinx -O0 -verify-machineinstrs -global-isel=0 snippet.ll -o -

Local llc output:

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

Occurrences (4):

InputFunctionConfig
avgflooru.3f07974176.ll (mutant of avgflooru.ll)test_fixed_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+zfinx -O1
clmul.d513814b60.ll (mutant of clmul.ll)clmul_i16-mtriple=riscv32 -verify-machineinstrs -mattr=+m,+zbs,+zfinx -O2
signed-truncation-check.63747593eb.ll (mutant of signed-truncation-check.ll)add_ultcmp_bad_i16_i8_magic-mtriple=riscv64-unknown-linux-gnu -mattr=+zbb,+zvkb,+zdinx -O0 -verify-machineinstrs
stack-probing-dynamic-nonentry.153f7476ce.ll (mutant of stack-probing-dynamic-nonentry.ll)f-mtriple=riscv32 -mattr=+m,+zvbb,+zfinx -O2 -verify-machineinstrs

Generated 2026-11-29 14:49 UTC.