1 ; RUN: llc < %s -march=x86 -mattr=+sse41 -o %t
2 ; RUN: grep extractps %t | count 1
3 ; RUN: grep pextrd %t | count 1
4 ; RUN: not grep pshufd %t
5 ; RUN: not grep movss %t
7 define void @t1(float* %R, <4 x float>* %P1) nounwind {
8 %X = load <4 x float>* %P1
9 %tmp = extractelement <4 x float> %X, i32 3
10 store float %tmp, float* %R
14 define float @t2(<4 x float>* %P1) nounwind {
15 %X = load <4 x float>* %P1
16 %tmp = extractelement <4 x float> %X, i32 2
20 define void @t3(i32* %R, <4 x i32>* %P1) nounwind {
21 %X = load <4 x i32>* %P1
22 %tmp = extractelement <4 x i32> %X, i32 3
23 store i32 %tmp, i32* %R
27 define i32 @t4(<4 x i32>* %P1) nounwind {
28 %X = load <4 x i32>* %P1
29 %tmp = extractelement <4 x i32> %X, i32 3