[llvm-commits] CVS: llvm/test/Regression/Transforms/IndVarsSimplify/subtract.ll
Chris Lattner
lattner at cs.uiuc.edu
Sun Dec 21 23:25:00 PST 2003
Changes in directory llvm/test/Regression/Transforms/IndVarsSimplify:
subtract.ll added (r1.1)
---
Log message:
new testcase for cananonicalization of subtracts
---
Diffs of the changes: (+12 -0)
Index: llvm/test/Regression/Transforms/IndVarsSimplify/subtract.ll
diff -c /dev/null llvm/test/Regression/Transforms/IndVarsSimplify/subtract.ll:1.1
*** /dev/null Sun Dec 21 23:24:55 2003
--- llvm/test/Regression/Transforms/IndVarsSimplify/subtract.ll Sun Dec 21 23:24:45 2003
***************
*** 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
+ }
More information about the llvm-commits
mailing list