https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67517

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |openmp
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-09-09
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
   Target Milestone|---                         |5.3
     Ever confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The testcase is not kosher, because if x is linear, then the step of the other
linears is not constant during the loop.

But e.g.
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;
}
maybe is.

Reply via email to