diff options
Diffstat (limited to 'polly/test/CodeGen/OpenMP/two_loop.c')
| -rw-r--r-- | polly/test/CodeGen/OpenMP/two_loop.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/polly/test/CodeGen/OpenMP/two_loop.c b/polly/test/CodeGen/OpenMP/two_loop.c new file mode 100644 index 00000000000..984e48f1f2c --- /dev/null +++ b/polly/test/CodeGen/OpenMP/two_loop.c @@ -0,0 +1,24 @@ +#include <string.h> +#define N 10240000 + +float A[N]; +float B[N]; + +void loop1_openmp() { + for (int i = 0; i <= N; i++) + A[i] = 0; + for (int j = 0; j <= N; j++) + B[j] = 0; +} + + +int main () { + int i; + memset(A, 0, sizeof(float) * N); + memset(B, 1, sizeof(float) * N); + + loop1_openmp(); + + return 0; +} + |

