llvm.org GIT mirror llvm / 801d908
New testcase for PR532 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20492 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 14 years ago
1 changed file(s) with 29 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -loop-unroll -loopsimplify -disable-output
1
2 implementation ; Functions:
3
4 void %print_board() {
5 entry:
6 br label %no_exit.1
7
8 no_exit.1: ; preds = %cond_false.2, %entry
9 br label %no_exit.2
10
11 no_exit.2: ; preds = %no_exit.2, %no_exit.1
12 %indvar1 = phi uint [ 0, %no_exit.1 ], [ %indvar.next2, %no_exit.2 ] ; [#uses=1]
13 %indvar.next2 = add uint %indvar1, 1 ; [#uses=2]
14 %exitcond3 = setne uint %indvar.next2, 7 ; [#uses=1]
15 br bool %exitcond3, label %no_exit.2, label %loopexit.2
16
17 loopexit.2: ; preds = %no_exit.2
18 br bool false, label %cond_true.2, label %cond_false.2
19
20 cond_true.2: ; preds = %loopexit.2
21 ret void
22
23 cond_false.2: ; preds = %loopexit.2
24 br bool false, label %no_exit.1, label %loopexit.1
25
26 loopexit.1: ; preds = %cond_false.2
27 ret void
28 }