X86: Align the stack on word boundaries in LowerFormalArguments()
[oota-llvm.git] / test / CodeGen / X86 / loop-strength-reduce.ll
index 7cdc4492ab38c4db4be2fe934693d4b11c3e753d..42c6ac4983dbeb2e83ddc43413162df4cea70214 100644 (file)
@@ -1,11 +1,15 @@
-; RUN: llvm-as < %s | llc -march=x86 | \
-; RUN:   grep {A(} | count 1
-;
-; Make sure the common loop invariant _A(reg) is hoisted up to preheader.
+; RUN: llc < %s -march=x86 -relocation-model=static | FileCheck %s
+
+; CHECK: align
+; CHECK: movl  $4, -4(%ecx)
+; CHECK: movl  $5, (%ecx)
+; CHECK: addl  $4, %ecx
+; CHECK: decl  %eax
+; CHECK: jne
 
 @A = internal global [16 x [16 x i32]] zeroinitializer, align 32               ; <[16 x [16 x i32]]*> [#uses=2]
 
-define void @test(i32 %row, i32 %N.in) {
+define void @test(i32 %row, i32 %N.in) nounwind {
 entry:
        %N = bitcast i32 %N.in to i32           ; <i32> [#uses=1]
        %tmp5 = icmp sgt i32 %N.in, 0           ; <i1> [#uses=1]