Re-enable extension optimization pass.
[oota-llvm.git] / test / CodeGen / X86 / vec_ss_load_fold.ll
index c123765f14dbfacb92153c48ca3fd761edc17810..b1613fb3a374000db9b5b9a531e8ab52c4f379b0 100644 (file)
@@ -1,11 +1,11 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse,+sse2 -o %t -f
+; RUN: llc < %s -march=x86 -mattr=+sse,+sse2 -o %t
 ; RUN: grep minss %t | grep CPI | count 2
 ; RUN: grep CPI   %t | not grep movss
 
 target datalayout = "e-p:32:32"
 target triple = "i686-apple-darwin8.7.2"
 
-define i16 @test1(float %f) {
+define i16 @test1(float %f) nounwind {
        %tmp = insertelement <4 x float> undef, float %f, i32 0         ; <<4 x float>> [#uses=1]
        %tmp10 = insertelement <4 x float> %tmp, float 0.000000e+00, i32 1              ; <<4 x float>> [#uses=1]
        %tmp11 = insertelement <4 x float> %tmp10, float 0.000000e+00, i32 2            ; <<4 x float>> [#uses=1]
@@ -19,9 +19,9 @@ define i16 @test1(float %f) {
        ret i16 %tmp69
 }
 
-define i16 @test2(float %f) {
-       %tmp28 = sub float %f, 1.000000e+00             ; <float> [#uses=1]
-       %tmp37 = mul float %tmp28, 5.000000e-01         ; <float> [#uses=1]
+define i16 @test2(float %f) nounwind {
+       %tmp28 = fsub float %f, 1.000000e+00            ; <float> [#uses=1]
+       %tmp37 = fmul float %tmp28, 5.000000e-01                ; <float> [#uses=1]
        %tmp375 = insertelement <4 x float> undef, float %tmp37, i32 0          ; <<4 x float>> [#uses=1]
        %tmp48 = tail call <4 x float> @llvm.x86.sse.min.ss( <4 x float> %tmp375, <4 x float> < float 6.553500e+04, float undef, float undef, float undef > )           ; <<4 x float>> [#uses=1]
        %tmp59 = tail call <4 x float> @llvm.x86.sse.max.ss( <4 x float> %tmp48, <4 x float> < float 0.000000e+00, float undef, float undef, float undef > )            ; <<4 x float>> [#uses=1]