summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/loop-strength-reduce4.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-22 00:46:49 +0000
committerDan Gohman <gohman@apple.com>2010-01-22 00:46:49 +0000
commit045f81981a61d283af9d6df1050cef6e7c7ff629 (patch)
tree7ff3408b837589b02774ce51d2459763a668ad58 /llvm/test/CodeGen/X86/loop-strength-reduce4.ll
parentf7b2fb51d191cb3fa668135a67c6b702c67d239e (diff)
downloadbcm5719-llvm-045f81981a61d283af9d6df1050cef6e7c7ff629.tar.gz
bcm5719-llvm-045f81981a61d283af9d6df1050cef6e7c7ff629.zip
Revert LoopStrengthReduce.cpp to pre-r94061 for now.
llvm-svn: 94123
Diffstat (limited to 'llvm/test/CodeGen/X86/loop-strength-reduce4.ll')
-rw-r--r--llvm/test/CodeGen/X86/loop-strength-reduce4.ll18
1 files changed, 2 insertions, 16 deletions
diff --git a/llvm/test/CodeGen/X86/loop-strength-reduce4.ll b/llvm/test/CodeGen/X86/loop-strength-reduce4.ll
index 6c0eb8c0df9..07e46eca75e 100644
--- a/llvm/test/CodeGen/X86/loop-strength-reduce4.ll
+++ b/llvm/test/CodeGen/X86/loop-strength-reduce4.ll
@@ -1,19 +1,5 @@
-; RUN: llc < %s -march=x86 -relocation-model=static -mtriple=i686-apple-darwin | FileCheck %s -check-prefix=STATIC
-; RUN: llc < %s -march=x86 -relocation-model=pic | FileCheck %s -check-prefix=PIC
-
-; By starting the IV at -64 instead of 0, a cmp is eliminated,
-; as the flags from the add can be used directly.
-
-; STATIC: movl $-64, %ecx
-
-; STATIC: movl %eax, _state+76(%ecx)
-; STATIC: addl $16, %ecx
-; STATIC: jne
-
-; In PIC mode the symbol can't be folded, so the change-compare-stride
-; trick applies.
-
-; PIC: cmpl $64
+; RUN: llc < %s -march=x86 | grep cmp | grep 64
+; RUN: llc < %s -march=x86 | not grep inc
@state = external global [0 x i32] ; <[0 x i32]*> [#uses=4]
@S = external global [0 x i32] ; <[0 x i32]*> [#uses=4]
OpenPOWER on IntegriCloud