llvm.org GIT mirror llvm / d92395f
Testcase for PR2537. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69866 91177308-0d34-0410-b5e6-96231b3b80d8 Owen Anderson 10 years ago
1 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | opt -loop-reduce -disable-output
1 ; PR 2537
2
3 define void @a() {
4 entry:
5 br label %dobody
6
7 dobody: ; preds = %dobody, %entry
8 %y.0 = phi i128 [ 0, %entry ], [ %add, %dobody ]
9 %x.0 = phi i128 [ 0, %entry ], [ %add2, %dobody ]
10 %add = add i128 %y.0, shl (i128 1, i128 64)
11 %add2 = add i128 %x.0, shl (i128 1, i128 48)
12 call void @b( i128 %add )
13 %cmp = icmp ult i128 %add2, shl (i128 1, i128 64)
14 br i1 %cmp, label %dobody, label %afterdo
15
16 afterdo: ; preds = %dobody
17 ret void
18 }
19
20 declare void @b(i128 %add)