Another testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13037 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2004-04-18 06:55:57 +00:00
parent 3048bd1d3e
commit df75125ff5

View File

@ -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
}