Fix the testcase. We do expect two vblendw on XMMs.
[oota-llvm.git] / test / CodeGen / X86 / avx2-shuffle.ll
1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=core-avx2 -mattr=+avx2 | FileCheck %s
2
3 ; Make sure that we don't match this shuffle using the vpblendw YMM instruction.
4 ; The mask for the vpblendw instruction needs to be identical for both halves
5 ; of the YMM. Need to use two vpblendw instructions.
6
7 ; CHECK: blendw1
8 ; CHECK: vpblendw
9 ; CHECK: vpblendw
10 ; CHECK: ret
11 define <16 x i16> @blendw1(<16 x i16> %a, <16 x i16> %b) nounwind alwaysinline {
12   %t = shufflevector <16 x i16> %a, <16 x i16> %b, <16 x i32> <i32 0, i32 17, i32 18, i32 3, i32 20, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 31>
13   ret <16 x i16> %t
14 }