new testcase for cananonicalization of subtracts

llvm-svn: 10581
This commit is contained in:
Chris Lattner 2003-12-22 05:24:45 +00:00
parent 6449dcefbc
commit f1277450ab
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
%G = global long 0
void %test(long %V) {
br label %Loop
Loop:
%X = phi long [1, %0], [%X.next, %Loop]
%X.next = sub long %X, %V
store long %X, long* %G
br label %Loop
}