Add support for 256-bit versions of VPERMIL instruction. This is a new
[oota-llvm.git] / test / CodeGen / X86 / avx-256-splat.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=corei7-avx -mattr=+avx | FileCheck %s
2
3 ; FIXME: use avx versions for punpcklbw and punpckhbw
4
5 ; CHECK: vextractf128 $0
6 ; CHECK-NEXT: punpcklbw
7 ; CHECK-NEXT: punpckhbw
8 ; CHECK-NEXT: vinsertf128 $0
9 ; CHECK-NEXT: vinsertf128 $1
10 ; CHECK-NEXT: vpermilps $85
11 define <32 x i8> @funcA(<32 x i8> %a) nounwind uwtable readnone ssp {
12 entry:
13   %shuffle = shufflevector <32 x i8> %a, <32 x i8> undef, <32 x i32> <i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5>
14   ret <32 x i8> %shuffle
15 }
16