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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [scop-5.c] - Blame information for rev 298

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
      else
24
        {
25
          for (j = 0; j <= 20; j++)
26
            a[j] = b + i;
27
          b = 8;
28
        }
29
    }
30
 
31
  return a[b];
32
}
33
 
34
/* { dg-final { scan-tree-dump-times "number of SCoPs: 3" 1 "graphite"} } */
35
/* { 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.