When checking for sret-demotion, it needs to use legal types. When using the return...
[oota-llvm.git] / test / CodeGen / X86 / 2008-03-18-CoalescerBug.ll
index c3b4a257353a01ff7b0be37c345ea44263f5ab20..ccc4d754c1f566b4bf81e2ed8fc77ca0ee708be9 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin -mattr=+sse2 -disable-fp-elim | grep movss | count 1
-; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin -mattr=+sse2 -disable-fp-elim -stats |& grep {Number of re-materialization} | grep 1
+; RUN: llc < %s -mtriple=i386-apple-darwin -mattr=+sse2 -disable-fp-elim | grep movss | count 1
+; RUN: llc < %s -mtriple=i386-apple-darwin -mattr=+sse2 -disable-fp-elim -stats |& grep {Number of re-materialization} | grep 1
 
        %struct..0objc_object = type opaque
        %struct.OhBoy = type {  }
@@ -14,7 +14,7 @@ entry:
        %tmp30 = icmp sgt i32 %delta, 0         ; <i1> [#uses=1]
        br i1 %tmp30, label %bb33, label %bb87.preheader
 bb33:          ; preds = %entry
-       %tmp28 = add float 0.000000e+00, %tmp24         ; <float> [#uses=1]
+       %tmp28 = fadd float 0.000000e+00, %tmp24                ; <float> [#uses=1]
        %tmp35 = fcmp ogt float %tmp28, 1.800000e+01            ; <i1> [#uses=1]
        br i1 %tmp35, label %bb38, label %bb87.preheader
 bb38:          ; preds = %bb33
@@ -24,7 +24,7 @@ bb43:         ; preds = %bb38
        store i32 %tmp53, i32* null, align 4
        ret void
 bb50:          ; preds = %bb38
-       %tmp56 = sub float 1.800000e+01, %tmp24         ; <float> [#uses=1]
+       %tmp56 = fsub float 1.800000e+01, %tmp24                ; <float> [#uses=1]
        %tmp57 = fcmp ugt float 0.000000e+00, %tmp56            ; <i1> [#uses=1]
        br i1 %tmp57, label %bb64, label %bb87.preheader
 bb64:          ; preds = %bb50