Enable all Hexagon tests.
[oota-llvm.git] / test / CodeGen / X86 / stride-nine-with-base-reg.ll
index 7aae9eb1ab9673658a2e6ec3cfeae9aecf58f6aa..ddf059c675df02799dc4bd9f79826b12701306fd 100644 (file)
@@ -1,5 +1,6 @@
-; RUN: llc < %s -march=x86 -relocation-model=static | not grep lea
-; RUN: llc < %s -march=x86-64 | not grep lea
+; RUN: llc < %s -march=x86 -relocation-model=static | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-linux               | FileCheck %s
+; CHECK-NOT:     lea
 
 ; P should be sunk into the loop and folded into the address mode. There
 ; shouldn't be any lea instructions inside the loop.
@@ -7,6 +8,7 @@
 @B = external global [1000 x i8], align 32
 @A = external global [1000 x i8], align 32
 @P = external global [1000 x i8], align 32
+@Q = external global [1000 x i8], align 32
 
 define void @foo(i32 %m, i32 %p) nounwind {
 entry:
@@ -24,6 +26,8 @@ bb:
         %tmp0 = add i32 %tmp8, %p
        %tmp10 = getelementptr [1000 x i8]* @P, i32 0, i32 %tmp0
        store i8 17, i8* %tmp10, align 4
+       %tmp11 = getelementptr [1000 x i8]* @Q, i32 0, i32 %tmp0
+       store i8 19, i8* %tmp11, align 4
        %indvar.next = add i32 %i.019.0, 1
        %exitcond = icmp eq i32 %indvar.next, %m
        br i1 %exitcond, label %return, label %bb