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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [run-id-4.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* PR rtl-optimization/24899 */
2
 
3
extern void abort (void);
4
 
5
__attribute__ ((noinline)) int
6
foo (int x, int y, int *z)
7
{
8
  int a, b, c, d;
9
 
10
  a = b = 0;
11
  for (d = 0; d < y; d++)
12
    {
13
      if (z)
14
        b = d * *z;
15
      for (c = 0; c < x; c++)
16
        a += b;
17
    }
18
 
19
  return a;
20
}
21
 
22
int
23
main (void)
24
{
25
  if (foo (3, 2, 0) != 0)
26
    abort ();
27
  return 0;
28
}

powered by: WebSVN 2.1.0

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