Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -march=x86 -mcpu=corei7 | FileCheck %s
      2 
      3 ;CHECK-LABEL: addXX_test:
      4 ;CHECK: padd
      5 ;CHECK: ret
      6 
      7 
      8 define <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
     16 define <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