[x32] Fix FrameIndex check in SelectLEA64_32Addr
[oota-llvm.git] / test / CodeGen / X86 / full-lsr.ll
index 3bd58b65be498b05ef8bf0833d3164c63ec938d6..cbcc62a7011a483a1ac6274e648da4ea5dbfd734 100644 (file)
@@ -1,14 +1,17 @@
-; RUN: llc < %s -march=x86 >%t
+; RUN: llc < %s -march=x86 -mcpu=generic | FileCheck %s
+; RUN: llc < %s -march=x86 -mcpu=atom | FileCheck -check-prefix=ATOM %s
 
-; TODO: Enhance full lsr mode to get this:
-; RUNX: grep {addl     \\\$4,} %t | count 3
-; RUNX: not grep {,%} %t
+define void @foo(float* nocapture %A, float* nocapture %B, float* nocapture %C, i32 %N) nounwind {
+; ATOM: foo
+; ATOM: addl
+; ATOM: addl
+; ATOM: leal
 
-; For now, it should find this, which is still pretty good:
-; RUN: not grep {addl  \\\$4,} %t
-; RUN: grep {,%} %t | count 6
+; CHECK: foo
+; CHECK: addl
+; CHECK: addl
+; CHECK: addl
 
-define void @foo(float* nocapture %A, float* nocapture %B, float* nocapture %C, i32 %N) nounwind {
 entry:
        %0 = icmp sgt i32 %N, 0         ; <i1> [#uses=1]
        br i1 %0, label %bb, label %return