blob: 5307ced4899bdb924727fb6b360b9177815ee1bd [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 -mcpu=pentium-m -o %t
Nate Begemanb44aad72009-04-29 22:47:44 +00002; RUN: grep movlhps %t | count 1
3; RUN: grep pshufd %t | count 1
Dan Gohman0a063102009-09-08 23:54:48 +00004; RUN: llc < %s -march=x86 -mcpu=core2 -o %t
Nate Begemanb44aad72009-04-29 22:47:44 +00005; RUN: grep movlhps %t | count 1
6; RUN: grep movddup %t | count 1
Evan Chenga2497eb2008-09-25 20:50:48 +00007
8define <4 x float> @t1(<4 x float> %a) nounwind {
9entry:
10 %tmp1 = shufflevector <4 x float> %a, <4 x float> undef, <4 x i32> < i32 0, i32 1, i32 0, i32 1 > ; <<4 x float>> [#uses=1]
11 ret <4 x float> %tmp1
12}
13
14define <4 x i32> @t2(<4 x i32>* %a) nounwind {
15entry:
16 %tmp1 = load <4 x i32>* %a;
17 %tmp2 = shufflevector <4 x i32> %tmp1, <4 x i32> undef, <4 x i32> < i32 0, i32 1, i32 0, i32 1 > ; <<4 x i32>> [#uses=1]
18 ret <4 x i32> %tmp2
19}