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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [scop-11.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
void bar ();
2
 
3
int toto()
4
{
5
  int i,j, b;
6
  int a[100];
7
 
8
  if (i == 20)
9
    {
10
      for (j = 0; j <= 20; j++)
11
        a[j] = b + i;
12
      b = 3;
13
      bar();
14
    }
15
  else
16
    {
17
      if (i == 30)
18
        {
19
          for (j = 0; j <= 20; j++)
20
            a[j] = b + i;
21
          b = 5;
22
        }
23
    }
24
 
25
  for (j = 0; j <= 20; j++)
26
    a[j] = b + i;
27
 
28
  return a[b];
29
}
30
 
31
/* { dg-final { scan-tree-dump-times "number of SCoPs: 3" 1 "graphite"} } */
32
/* { dg-final { cleanup-tree-dump "graphite" } } */

powered by: WebSVN 2.1.0

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