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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [opt/] [inline11.C] - Blame information for rev 764

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

Line No. Rev Author Line
1 693 jeremybenn
/* Verify that gnu_inline inlines disregard inlining limits.  */
2
/* { dg-do link } */
3
/* { dg-options "-O2" } */
4
 
5
extern int foo (int);
6
extern int baz (int);
7
 
8
extern inline __attribute__((gnu_inline))
9
int foo (int x)
10
{
11
  int i;
12
  if (!__builtin_constant_p (x))
13
    {
14
#define B(n) baz (1##n) + baz (2##n) + baz (3##n) \
15
             + baz (4##n) + baz (5##n) + baz (6##n)
16
#define C(n) B(1##n) + B(2##n) + B(3##n) + B(4##n) + B(5##n) + B(6##n)
17
#define D(n) C(1##n) + C(2##n) + C(3##n) + C(4##n) + C(5##n) + C(6##n)
18
      return D(0) + D(1) + D(2) + D(3) + D(4)
19
             + D(5) + D(6) + D(7) + D(8) + D(9);
20
    }
21
  return 0;
22
}
23
 
24
int
25
main (void)
26
{
27
  return foo (0);
28
}

powered by: WebSVN 2.1.0

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