aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-18 06:55:57 +0000
committerChris Lattner <sabre@nondot.org>2004-04-18 06:55:57 +0000
commitdf75125ff5e2111f705e8c0a430b4883e68eb915 (patch)
treed8b76c64208fbfdfd069cb46c7366abe8d53d8d0 /test/Transforms
parent3048bd1d3e2e77d6d6a74254ab83a0e4a93c9525 (diff)
downloadexternal_llvm-df75125ff5e2111f705e8c0a430b4883e68eb915.zip
external_llvm-df75125ff5e2111f705e8c0a430b4883e68eb915.tar.gz
external_llvm-df75125ff5e2111f705e8c0a430b4883e68eb915.tar.bz2
Another testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/IndVarsSimplify/exit_value_tests.llx13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/Transforms/IndVarsSimplify/exit_value_tests.llx b/test/Transforms/IndVarsSimplify/exit_value_tests.llx
index e5defcb..3f527ca 100644
--- a/test/Transforms/IndVarsSimplify/exit_value_tests.llx
+++ b/test/Transforms/IndVarsSimplify/exit_value_tests.llx
@@ -87,3 +87,16 @@ Out:
ret short %B1
}
+uint %linear_div_fold() { ;; for (i = 4; i != 68; i += 8) (exit with i/2)
+entry:
+ br label %loop
+loop:
+ %i = phi uint [ 4, %entry ], [ %i.next, %loop ]
+ %i.next = add uint %i, 8
+ %RV = div uint %i, 2
+ %c = setne uint %i, 68
+ br bool %c, label %loop, label %loopexit
+loopexit:
+ ret uint %RV
+}
+