Extend 'readonly' and 'readnone' to work on function arguments as well as
[oota-llvm.git] / test / Transforms / InstCombine / vec_narrow.ll
index daf7bcf297c1de89eaf4040ac74e9c9d904846ea..b4c41f6d297d62ef667c743dc9f24b4824be4dc7 100644 (file)
@@ -1,12 +1,10 @@
-; RUN: opt < %s -instcombine -S | \
-; RUN:   grep {add float}
+; RUN: opt < %s -instcombine -S | grep "fadd float"
 
-        %V = type <4 x float>
 
-define float @test(%V %A, %V %B, float %f) {
-        %C = insertelement %V %A, float %f, i32 0               ; <%V> [#uses=1]
-        %D = fadd %V %C, %B              ; <%V> [#uses=1]
-        %E = extractelement %V %D, i32 0                ; <float> [#uses=1]
+define float @test(<4 x float> %A, <4 x float> %B, float %f) {
+        %C = insertelement <4 x float> %A, float %f, i32 0               ; <%V> [#uses=1]
+        %D = fadd <4 x float> %C, %B              ; <%V> [#uses=1]
+        %E = extractelement <4 x float> %D, i32 0                ; <float> [#uses=1]
         ret float %E
 }