xref: /aosp_15_r20/external/llvm/test/CodeGen/X86/2011-10-30-padd.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1; RUN: llc < %s -march=x86 -mcpu=corei7 | FileCheck %s
2
3;CHECK-LABEL: addXX_test:
4;CHECK: padd
5;CHECK: ret
6
7
8define <16 x i8> @addXX_test(<16 x i8> %a) {
9      %b = add <16 x i8> %a, %a
10      ret <16 x i8> %b
11}
12
13;CHECK-LABEL: instcombine_test:
14;CHECK: padd
15;CHECK: ret
16define <16 x i8> @instcombine_test(<16 x i8> %a) {
17  %b = shl <16 x i8> %a, <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>
18  ret <16 x i8> %b
19}
20
21