URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O3 -g -finline-limit=100" } */
|
/* { dg-options "-O3 -g -finline-limit=100" } */
|
|
|
#define WORK(x, y) __asm__ ("" : "=r" (x) : "0" (x)); y += x + 26
|
#define WORK(x, y) __asm__ ("" : "=r" (x) : "0" (x)); y += x + 26
|
#define SOME_WORK(x, y) WORK(x, y); WORK(x, y); WORK(x, y); WORK(x, y)
|
#define SOME_WORK(x, y) WORK(x, y); WORK(x, y); WORK(x, y); WORK(x, y)
|
#define MORE_WORK(x, y) SOME_WORK(x, y); SOME_WORK(x, y); SOME_WORK(x, y)
|
#define MORE_WORK(x, y) SOME_WORK(x, y); SOME_WORK(x, y); SOME_WORK(x, y)
|
#define EVEN_MORE_WORK(x, y) MORE_WORK(x, y); MORE_WORK(x, y); MORE_WORK(x, y)
|
#define EVEN_MORE_WORK(x, y) MORE_WORK(x, y); MORE_WORK(x, y); MORE_WORK(x, y)
|
#define LOTS_OF_WORK(x, y) EVEN_MORE_WORK(x, y); EVEN_MORE_WORK(x, y)
|
#define LOTS_OF_WORK(x, y) EVEN_MORE_WORK(x, y); EVEN_MORE_WORK(x, y)
|
|
|
static int __attribute__((unused)) foo (int x)
|
static int __attribute__((unused)) foo (int x)
|
{
|
{
|
inline int bar (int x)
|
inline int bar (int x)
|
{
|
{
|
int y;
|
int y;
|
y = x;
|
y = x;
|
LOTS_OF_WORK(x, y);
|
LOTS_OF_WORK(x, y);
|
LOTS_OF_WORK(x, y);
|
LOTS_OF_WORK(x, y);
|
LOTS_OF_WORK(x, y);
|
LOTS_OF_WORK(x, y);
|
LOTS_OF_WORK(x, y);
|
LOTS_OF_WORK(x, y);
|
LOTS_OF_WORK(x, y);
|
LOTS_OF_WORK(x, y);
|
LOTS_OF_WORK(x, y);
|
LOTS_OF_WORK(x, y);
|
return y;
|
return y;
|
}
|
}
|
return bar(x);
|
return bar(x);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.