New testcase for PR194

llvm-svn: 10568
This commit is contained in:
Chris Lattner 2003-12-21 19:06:15 +00:00
parent 2103574b32
commit 7b432f77ac
1 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,12 @@
; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep indvar | not grep uint
%G = global long 0
void %test() {
br label %Loop
Loop:
%X = phi long [1, %0], [%X.next, %Loop]
%X.next = add long %X, 1
store long %X, long* %G
br label %Loop
}