URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-options "-O2" } */
|
/* { dg-options "-O2" } */
|
|
|
extern void abort (void);
|
extern void abort (void);
|
|
|
int global;
|
int global;
|
|
|
static foo(void) __attribute__((noinline));
|
static foo(void) __attribute__((noinline));
|
|
|
static foo(void)
|
static foo(void)
|
{
|
{
|
global = 1;
|
global = 1;
|
}
|
}
|
|
|
static bar(void)
|
static bar(void)
|
{
|
{
|
foo ();
|
foo ();
|
}
|
}
|
|
|
int execute(int cmd)
|
int execute(int cmd)
|
{
|
{
|
__label__ start;
|
__label__ start;
|
|
|
void raise(void)
|
void raise(void)
|
{
|
{
|
goto start;
|
goto start;
|
}
|
}
|
|
|
int last;
|
int last;
|
|
|
bar ();
|
bar ();
|
|
|
last = 0;
|
last = 0;
|
|
|
start:
|
start:
|
|
|
if (last == 0)
|
if (last == 0)
|
while (1)
|
while (1)
|
{
|
{
|
last = 1;
|
last = 1;
|
raise ();
|
raise ();
|
}
|
}
|
|
|
if (last == 0)
|
if (last == 0)
|
return 0;
|
return 0;
|
else
|
else
|
return cmd;
|
return cmd;
|
}
|
}
|
|
|
int main(void)
|
int main(void)
|
{
|
{
|
if (execute (1) == 0)
|
if (execute (1) == 0)
|
abort ();
|
abort ();
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.