1 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movss | wc -l | grep 3 &&
2 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movhlps | wc -l | grep 1 &&
3 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep pshufd | wc -l | grep 1 &&
4 ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep unpckhpd | wc -l | grep 1
6 void %test1(<4 x float>* %F, float* %f) {
7 %tmp = load <4 x float>* %F
8 %tmp7 = add <4 x float> %tmp, %tmp
9 %tmp2 = extractelement <4 x float> %tmp7, uint 0
10 store float %tmp2, float* %f
14 float %test2(<4 x float>* %F, float* %f) {
15 %tmp = load <4 x float>* %F
16 %tmp7 = add <4 x float> %tmp, %tmp
17 %tmp2 = extractelement <4 x float> %tmp7, uint 2
21 void %test3(float* %R, <4 x float>* %P1) {
22 %X = load <4 x float>* %P1
23 %tmp = extractelement <4 x float> %X, uint 3
24 store float %tmp, float* %R
28 double %test4(double %A) {
29 %tmp1 = call <2 x double> %foo()
30 %tmp2 = extractelement <2 x double> %tmp1, uint 1
31 %tmp3 = add double %tmp2, %A
35 declare <2 x double> %foo()