Fix a minor regression from my dag combiner changes. One more place which needs to...
[oota-llvm.git] / test / CodeGen / X86 / stride-nine-with-base-reg.ll
index f443c76015dd5d7fbc2daa277c5267bdaba6998a..7aae9eb1ab9673658a2e6ec3cfeae9aecf58f6aa 100644 (file)
@@ -1,14 +1,14 @@
-; RUN: llvm-as < %s | llc -march=x86 | grep lea | count 1
-; RUN: llvm-as < %s | llc -march=x86-64 | not grep lea
+; RUN: llc < %s -march=x86 -relocation-model=static | not grep lea
+; RUN: llc < %s -march=x86-64 | not grep lea
 
-; For x86 there's an lea above the loop. In both cases, there shouldn't
-; be any lea instructions inside the loop.
+; P should be sunk into the loop and folded into the address mode. There
+; shouldn't be any lea instructions inside the loop.
 
 @B = external global [1000 x i8], align 32
 @A = external global [1000 x i8], align 32
 @P = external global [1000 x i8], align 32
 
-define void @foo(i32 %m, i32 %p) {
+define void @foo(i32 %m, i32 %p) nounwind {
 entry:
        %tmp1 = icmp sgt i32 %m, 0
        br i1 %tmp1, label %bb, label %return