Add some tests based on PR21711
[oota-llvm.git] / test / CodeGen / X86 / 2008-10-27-CoalescerBug.ll
index 9d144a4be0e908f7300a386673ccfde3fb07d6a7..b1dcd031265b58d3c9e8017629522b2c19c368b4 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llc < %s -mtriple=i386-apple-darwin -mattr=+sse2 -stats |& FileCheck %s
+; REQUIRES: asserts
+; RUN: llc < %s -mtriple=i386-apple-darwin -mattr=+sse2 -stats 2>&1 | FileCheck %s
 ; Now this test spills one register. But a reload in the loop is cheaper than
 ; the divsd so it's a win.
 
@@ -17,10 +18,9 @@ bb:          ; preds = %bb, %entry
 ; CHECK: %bb30.loopexit
 ; CHECK: divsd %xmm0
 ; CHECK: movsd %xmm0, 16(%esp)
-; CHECK: .align
-; CHECK-NEXT: %bb3
+; CHECK: %bb3
 bb3:           ; preds = %bb30.loopexit, %bb25, %bb3
-       %2 = load i32* null, align 4            ; <i32> [#uses=1]
+       %2 = load i32, i32* null, align 4               ; <i32> [#uses=1]
        %3 = mul i32 %2, 0              ; <i32> [#uses=1]
        %4 = icmp slt i32 0, %3         ; <i1> [#uses=1]
        br i1 %4, label %bb18, label %bb3