OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr49948.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR tree-optimization/49948 */
2
/* { dg-do compile } */
3
/* { dg-require-effective-target pthread } */
4
/* { dg-options "-O3 -ftree-parallelize-loops=2" } */
5
 
6
extern int a, *b;
7
int
8
foo (void)
9
{
10
  int c, d = 8, *e[8], i;
11
  if (a <= 7)
12
    {
13
      for (i = 0; i < 8; ++i)
14
        e[i] = &c;
15
      while (--d)
16
        {
17
          a = 0;
18
          b = e[0];
19
        }
20
      return 0;
21
    }
22
  return b == &d;
23
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.