X86: Align the stack on word boundaries in LowerFormalArguments()
[oota-llvm.git] / test / CodeGen / X86 / vec_shuffle-16.ll
1 ; RUN: llc < %s -march=x86 -mcpu=penryn -mattr=+sse,-sse2 -mtriple=i386-apple-darwin | FileCheck %s -check-prefix=sse
2 ; RUN: llc < %s -march=x86 -mcpu=penryn -mattr=+sse2 -mtriple=i386-apple-darwin | FileCheck %s -check-prefix=sse2
3
4 ; sse-LABEL:  t1:
5 ; sse2-LABEL: t1:
6 define <4 x float> @t1(<4 x float> %a, <4 x float> %b) nounwind  {
7 ; sse: shufps
8 ; sse2: pshufd
9 ; sse2-NEXT: ret
10         %tmp1 = shufflevector <4 x float> %b, <4 x float> undef, <4 x i32> zeroinitializer
11         ret <4 x float> %tmp1
12 }
13
14 ; sse-LABEL:  t2:
15 ; sse2-LABEL: t2:
16 define <4 x float> @t2(<4 x float> %A, <4 x float> %B) nounwind {
17 ; sse: shufps
18 ; sse2: pshufd
19 ; sse2-NEXT: ret
20         %tmp = shufflevector <4 x float> %A, <4 x float> %B, <4 x i32> < i32 3, i32 3, i32 3, i32 3 >
21         ret <4 x float> %tmp
22 }
23
24 ; sse-LABEL:  t3:
25 ; sse2-LABEL: t3:
26 define <4 x float> @t3(<4 x float> %A, <4 x float> %B) nounwind {
27 ; sse: shufps
28 ; sse2: pshufd
29 ; sse2-NEXT: ret
30         %tmp = shufflevector <4 x float> %A, <4 x float> %B, <4 x i32> < i32 4, i32 4, i32 4, i32 4 >
31         ret <4 x float> %tmp
32 }
33
34 ; sse-LABEL:  t4:
35 ; sse2-LABEL: t4:
36 define <4 x float> @t4(<4 x float> %A, <4 x float> %B) nounwind {
37
38 ; sse: shufps
39 ; sse2: pshufd
40 ; sse2-NEXT: ret
41         %tmp = shufflevector <4 x float> %A, <4 x float> %B, <4 x i32> < i32 1, i32 3, i32 2, i32 0 >
42         ret <4 x float> %tmp
43 }