Move a DenseMap's declaration outside of a loop, and just call
[oota-llvm.git] / test / Transforms / InstCombine / 2006-03-30-ExtractElement.ll
index 314946085f509b702b58d2541f1ca33b1137e400..e4b2b393122413bb2669173619f124038dc04c86 100644 (file)
@@ -1,7 +1,8 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
+; RUN: llvm-as < %s | opt -instcombine -disable-output
 
-float %test(<4 x float> %V) {
-       %V2 = insertelement <4 x float> %V, float 1.0, uint 3
-       %R = extractelement <4 x float> %V2, uint 2
-       ret float %R
+define float @test(<4 x float> %V) {
+        %V2 = insertelement <4 x float> %V, float 1.000000e+00, i32 3           ; <<4 x float>> [#uses=1]
+        %R = extractelement <4 x float> %V2, i32 2              ; <float> [#uses=1]
+        ret float %R
 }
+