Another testcase

llvm-svn: 13037
This commit is contained in:
Chris Lattner 2004-04-18 06:55:57 +00:00
parent e375a4fdc2
commit 3796974563
1 changed files with 13 additions and 0 deletions

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
}