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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20040805-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
#if __INT_MAX__ < 32768 || (defined(STACK_SIZE) && STACK_SIZE < 0x12000)
2
int main () { exit (0); }
3
#else
4
int a[2] = { 2, 3 };
5
 
6
static int __attribute__((noinline))
7
bar (int x, void *b)
8
{
9
  a[0]++;
10
  return x;
11
}
12
 
13
static int __attribute__((noinline))
14
foo (int x)
15
{
16
  char buf[0x10000];
17
  int y = a[0];
18
  a[1] = y;
19
  x = bar (x, buf);
20
  y = bar (y, buf);
21
  return x + y;
22
}
23
 
24
int
25
main ()
26
{
27
  if (foo (100) != 102)
28
    abort ();
29
  exit (0);
30
}
31
#endif

powered by: WebSVN 2.1.0

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