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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20010119-1.c] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
#ifdef __OPTIMIZE__
2
extern void undef (void);
3
 
4
void bar (unsigned x) { }
5
void baz (unsigned x) { }
6
 
7
extern inline void foo (int a, int b)
8
{
9
  int c = 0;
10
  while (c++ < b)
11
    (__builtin_constant_p (a) ? ((a) > 20000 ? undef () : bar (a)) : baz (a));
12
}
13
#else
14
void foo (int a, int b)
15
{
16
}
17
#endif
18
 
19
int main (void)
20
{
21
  foo(10, 100);
22
  exit (0);
23
}

powered by: WebSVN 2.1.0

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