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

