aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Transforms/ModuloSched/arith-simple.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/Transforms/ModuloSched/arith-simple.c b/test/Transforms/ModuloSched/arith-simple.c
new file mode 100644
index 0000000000..7f3b83ef27
--- /dev/null
+++ b/test/Transforms/ModuloSched/arith-simple.c
@@ -0,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;
+}