(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
autopar/
pr68460.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O -ftree-parallelize-loops=2 -ftree-vectorize -fno-tree-ch -fno-tree-dominator-opts" } */
       3  
       4  void abort (void);
       5  
       6  int d[1024], e[1024];
       7  
       8  int
       9  foo (void)
      10  {
      11    int s = 0;
      12    int i;
      13  
      14    for (i = 0; i < 1024; i++)
      15      s += d[i] - e[i];
      16  
      17    return s;
      18  }
      19  
      20  int
      21  main ()
      22  {
      23    int i;
      24  
      25    for (i = 0; i < 1024; i++)
      26      {
      27        d[i] = i * 2;
      28        e[i] = i;
      29      }
      30  
      31    if (foo () != 1023 * 1024 / 2)
      32      abort ();
      33  
      34    return 0;
      35  }