URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 338 |
#ifdef __OPTIMIZE__
|
#ifdef __OPTIMIZE__
|
extern void undef (void);
|
extern void undef (void);
|
|
|
void bar (unsigned x) { }
|
void bar (unsigned x) { }
|
void baz (unsigned x) { }
|
void baz (unsigned x) { }
|
|
|
extern inline void foo (int a, int b)
|
extern inline void foo (int a, int b)
|
{
|
{
|
int c = 0;
|
int c = 0;
|
while (c++ < b)
|
while (c++ < b)
|
(__builtin_constant_p (a) ? ((a) > 20000 ? undef () : bar (a)) : baz (a));
|
(__builtin_constant_p (a) ? ((a) > 20000 ? undef () : bar (a)) : baz (a));
|
}
|
}
|
#else
|
#else
|
void foo (int a, int b)
|
void foo (int a, int b)
|
{
|
{
|
}
|
}
|
#endif
|
#endif
|
|
|
int main (void)
|
int main (void)
|
{
|
{
|
foo(10, 100);
|
foo(10, 100);
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.