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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20080424-1.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* PR tree-optimization/36008 */
2
 
3
extern void abort (void);
4
 
5
int g[48][3][3];
6
 
7
void __attribute__ ((noinline))
8
bar (int x[3][3], int y[3][3])
9
{
10
  static int i;
11
  if (x != g[i + 8] || y != g[i++])
12
    abort ();
13
}
14
 
15
static inline void __attribute__ ((always_inline))
16
foo (int x[][3][3])
17
{
18
  int i;
19
  for (i = 0; i < 8; i++)
20
    {
21
      int k = i + 8;
22
      bar (x[k], x[k - 8]);
23
    }
24
}
25
 
26
int
27
main ()
28
{
29
  foo (g);
30
  return 0;
31
}

powered by: WebSVN 2.1.0

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