diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-04-10 21:43:58 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-04-10 21:43:58 +0000 |
commit | c28e3c3880fdc6702628590653bf174a992b3fdd (patch) | |
tree | 6221abbf1da2c0dafb921ff767b4d3cf3dd28f33 /test/Transforms/ModuloSched/for-array.c | |
parent | d4bd3eba5d42356823730fe34418a563a2a2ffd9 (diff) |
Not only is this the first test case for ModuloScheduing, it's also the first
test case for the CVS commit-diffs.pl script which should show the entire
contents of this file below:
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5772 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ModuloSched/for-array.c')
-rw-r--r-- | test/Transforms/ModuloSched/for-array.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Transforms/ModuloSched/for-array.c b/test/Transforms/ModuloSched/for-array.c new file mode 100644 index 0000000000..943c076983 --- /dev/null +++ b/test/Transforms/ModuloSched/for-array.c @@ -0,0 +1,17 @@ +#include <stdio.h> + +int main (int argc, char** argv) { + int i, a[25]; + a[0] = 1; + + for (i=1; i < 24; i++) { + a[i-1] += i; + a[i] = 5; + a[i+1] = a[i] + a[i-1]; + } + + for (i=0; i < 25; i++) + printf("a[%d] = %d\n", i, a[i]); + + return 0; +} |