aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/IndVarSimplify/gep-with-mul-base.ll
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-09-12 23:13:57 +0000
committerAndrew Trick <atrick@apple.com>2011-09-12 23:13:57 +0000
commit857ad229beaaf4d5bfa1c8336516aab1df071b00 (patch)
treec8eb9b69fa4ac8481e37bb3ebd35681c88649efd /test/Transforms/IndVarSimplify/gep-with-mul-base.ll
parent8970060a4ce813337a7610e0cc5501bcfa900495 (diff)
downloadexternal_llvm-857ad229beaaf4d5bfa1c8336516aab1df071b00.zip
external_llvm-857ad229beaaf4d5bfa1c8336516aab1df071b00.tar.gz
external_llvm-857ad229beaaf4d5bfa1c8336516aab1df071b00.tar.bz2
Conditionalize indvars test that relies on SCEV expansion of geps,
which is only relevant with canonical IVs git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139556 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/IndVarSimplify/gep-with-mul-base.ll')
-rw-r--r--test/Transforms/IndVarSimplify/gep-with-mul-base.ll17
1 files changed, 13 insertions, 4 deletions
diff --git a/test/Transforms/IndVarSimplify/gep-with-mul-base.ll b/test/Transforms/IndVarSimplify/gep-with-mul-base.ll
index 19d54ff..7e1e2a3 100644
--- a/test/Transforms/IndVarSimplify/gep-with-mul-base.ll
+++ b/test/Transforms/IndVarSimplify/gep-with-mul-base.ll
@@ -1,7 +1,16 @@
-; RUN: opt < %s -indvars -S > %t
-; RUN: grep add %t | count 6
-; RUN: grep sub %t | count 2
-; RUN: grep mul %t | count 6
+; RUN: opt < %s -indvars -S -enable-iv-rewrite | FileCheck %s
+; CHECK: define void @foo
+; CHECK: mul
+; CHECK: mul
+; CHECK: mul
+; CHECK: add
+; CHECK: sub
+; CHECK: define void @bar
+; CHECK: mul
+; CHECK: mul
+; CHECK: mul
+; CHECK: add
+; CHECK: sub
define void @foo(i64 %n, i64 %m, i64 %o, double* nocapture %p) nounwind {
entry: