[llvm-commits] CVS: llvm/test/Regression/Transforms/ModuloSched/arith-simple.c
Misha Brukman
brukman at cs.uiuc.edu
Thu Apr 10 17:02:00 PDT 2003
Changes in directory llvm/test/Regression/Transforms/ModuloSched:
arith-simple.c added (r1.1)
---
Log message:
Simple arithmetic loop-based test case for modulo scheduling.
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/ModuloSched/arith-simple.c
diff -c /dev/null llvm/test/Regression/Transforms/ModuloSched/arith-simple.c:1.1
*** /dev/null Thu Apr 10 17:01:25 2003
--- llvm/test/Regression/Transforms/ModuloSched/arith-simple.c Thu Apr 10 17:01:15 2003
***************
*** 0 ****
--- 1,18 ----
+ #include <stdio.h>
+
+ int main (int argc, char** argv) {
+ int a, b, c, d, i;
+
+ a = b = c = d = 1;
+
+ for (i=0; i < 15; i++) {
+ a = b + c;
+ c = d - b;
+ d = a + b;
+ b = c + i;
+ }
+
+ printf("a = %d, b = %d, c = %d, d = %d\n", a, b, c, d);
+
+ return 0;
+ }
More information about the llvm-commits
mailing list