From: Chris Lattner Date: Sun, 18 Apr 2004 06:55:57 +0000 (+0000) Subject: Another testcase X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=df75125ff5e2111f705e8c0a430b4883e68eb915;p=oota-llvm.git Another testcase git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13037 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Transforms/IndVarsSimplify/exit_value_tests.llx b/test/Transforms/IndVarsSimplify/exit_value_tests.llx index e5defcbd338..3f527ca369a 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 +} +