URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
// { dg-do assemble }
|
// { dg-do assemble }
|
// { dg-options "-funroll-loops -O2 -g" }
|
// { dg-options "-funroll-loops -O2 -g" }
|
|
|
inline void f()
|
inline void f()
|
{
|
{
|
typedef int T;
|
typedef int T;
|
}
|
}
|
|
|
inline void g()
|
inline void g()
|
{
|
{
|
typedef double U;
|
typedef double U;
|
}
|
}
|
|
|
int n;
|
int n;
|
|
|
struct B
|
struct B
|
{
|
{
|
~B() {
|
~B() {
|
for (int i = 0; i < n; ++i)
|
for (int i = 0; i < n; ++i)
|
g();
|
g();
|
}
|
}
|
};
|
};
|
|
|
struct D : public B {
|
struct D : public B {
|
~D() {
|
~D() {
|
for (int j = 0; j < n; ++j)
|
for (int j = 0; j < n; ++j)
|
f();
|
f();
|
}
|
}
|
};
|
};
|
|
|
D d;
|
D d;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.