summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll
diff options
context:
space:
mode:
authorPreston Gurd <preston.gurd@intel.com>2012-07-19 18:53:21 +0000
committerPreston Gurd <preston.gurd@intel.com>2012-07-19 18:53:21 +0000
commitf2ea70ae4a50d55d502da35ddc25f9f5890dca92 (patch)
tree639dff54781f1931a27de49a4d44b9dd9bd95190 /llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll
parenta309c95d4174fa40e6dfd1410f24f2206438e5df (diff)
downloadbcm5719-llvm-f2ea70ae4a50d55d502da35ddc25f9f5890dca92.tar.gz
bcm5719-llvm-f2ea70ae4a50d55d502da35ddc25f9f5890dca92.zip
Fix remaining lit tests which were failing when run on an Atom
processor. Patches by Tyler Nowicki, Andy Zhang, and Preston Gurd! llvm-svn: 160520
Diffstat (limited to 'llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll')
-rw-r--r--llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll17
1 files changed, 15 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll b/llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll
index ebda9f201df..6e8d0bfdfe3 100644
--- a/llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll
+++ b/llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll
@@ -1,10 +1,16 @@
-; RUN: llc -mtriple=x86_64-darwin < %s | FileCheck %s
+; RUN: llc -mtriple=x86_64-darwin -mcpu=generic < %s | FileCheck %s
+; RUN: llc -mtriple=x86_64-darwin -mcpu=atom < %s | FileCheck -check-prefix=ATOM %s
; CHECK: t:
; CHECK: decq
-; CHECK-NEXT: movl (
+; CHECK-NEXT: movl (%r11,%rax,4), %eax
; CHECK-NEXT: jne
+; ATOM: t:
+; ATOM: movl (%r10,%rax,4), %eax
+; ATOM-NEXT: decq
+; ATOM-NEXT: jne
+
@Te0 = external global [256 x i32] ; <[256 x i32]*> [#uses=5]
@Te1 = external global [256 x i32] ; <[256 x i32]*> [#uses=4]
@Te3 = external global [256 x i32] ; <[256 x i32]*> [#uses=2]
@@ -149,6 +155,13 @@ bb2: ; preds = %bb
; CHECK: jne
; CHECK: ret
+; ATOM: f:
+; ATOM: %for.body
+; ATOM: incl [[IV:%e..]]
+; ATOM: cmpl $1, [[IV]]
+; ATOM: jne
+; ATOM: ret
+
define i32 @f(i32 %i, i32* nocapture %a) nounwind uwtable readonly ssp {
entry:
%cmp4 = icmp eq i32 %i, 1
OpenPOWER on IntegriCloud