1 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep shufflevec | wc -l | grep 1 &&
2 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep insertelement &&
3 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep extractelement
5 <4 x float> %test(<4 x float> %tmp, <4 x float> %tmp1) {
6 %tmp4 = extractelement <4 x float> %tmp, uint 1 ; <float> [#uses=1]
7 %tmp2 = extractelement <4 x float> %tmp, uint 3 ; <float> [#uses=1]
8 %tmp1 = extractelement <4 x float> %tmp1, uint 0 ; <float> [#uses=1]
9 %tmp128 = insertelement <4 x float> undef, float %tmp4, uint 0 ; <<4 x float>> [#uses=1]
10 %tmp130 = insertelement <4 x float> %tmp128, float undef, uint 1 ; <<4 x float>> [#uses=1]
11 %tmp132 = insertelement <4 x float> %tmp130, float %tmp2, uint 2 ; <<4 x float>> [#uses=1]
12 %tmp134 = insertelement <4 x float> %tmp132, float %tmp1, uint 3 ; <<4 x float>> [#uses=1]
13 ret <4 x float> %tmp134