aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/gomp/pr67517.c
blob: 3055ffb34eb2d708c5cdbcc10def0cdb076b6266 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR middle-end/67517 */
/* { dg-do compile } */
/* { dg-options "-fopenmp" } */

int
foo (int x, int y, int z)
{
  int i;
  #pragma omp parallel for simd linear (y : x & 15) linear (x : 16) linear (z : x & 15)
  for (i = 0; i < 256; ++i)
    x += 16, y += x & 15, z += x & 15;
  return x + y + z;
}