summaryrefslogtreecommitdiff
path: root/polly/test/CodeGen/OpenMP/parallel_loop_simple.c
blob: 1c382fc992e4658b96d706d654deb311923b5c18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define M 1024
#define N 1024
#define K 1024

float X[K];

float parallel_loop_simple() {
  int i, k;

  for (i = 0; i < M; i++)
    for (k = 0; k < K; k++)
      X[k] += X[k];

  return X[42];
}