1 ; RUN: opt < %s -instcombine -S | \
2 ; RUN: grep shufflevec | count 1
3 ; RUN: opt < %s -instcombine -S | \
4 ; RUN: not grep insertelement
5 ; RUN: opt < %s -instcombine -S | \
6 ; RUN: not grep extractelement
9 define <4 x float> @test(<4 x float> %tmp, <4 x float> %tmp1) {
10 %tmp4 = extractelement <4 x float> %tmp, i32 1 ; <float> [#uses=1]
11 %tmp2 = extractelement <4 x float> %tmp, i32 3 ; <float> [#uses=1]
12 %tmp1.upgrd.1 = extractelement <4 x float> %tmp1, i32 0 ; <float> [#uses=1]
13 %tmp128 = insertelement <4 x float> undef, float %tmp4, i32 0 ; <<4 x float>> [#uses=1]
14 %tmp130 = insertelement <4 x float> %tmp128, float undef, i32 1 ; <<4 x float>> [#uses=1]
15 %tmp132 = insertelement <4 x float> %tmp130, float %tmp2, i32 2 ; <<4 x float>> [#uses=1]
16 %tmp134 = insertelement <4 x float> %tmp132, float %tmp1.upgrd.1, i32 3 ; <<4 x float>> [#uses=1]
17 ret <4 x float> %tmp134