URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* PR debug/36690 */
|
/* PR debug/36690 */
|
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-options "-O0 -g -dA" } */
|
/* { dg-options "-O0 -g -dA" } */
|
|
|
int cnt;
|
int cnt;
|
|
|
void
|
void
|
bar (int i)
|
bar (int i)
|
{
|
{
|
cnt += i;
|
cnt += i;
|
}
|
}
|
|
|
void
|
void
|
foo (int i, int j)
|
foo (int i, int j)
|
{
|
{
|
if (j)
|
if (j)
|
{
|
{
|
bar (i + 1);
|
bar (i + 1);
|
goto f1;
|
goto f1;
|
}
|
}
|
bar (i + 2);
|
bar (i + 2);
|
goto f2;
|
goto f2;
|
f1:
|
f1:
|
if (i > 10)
|
if (i > 10)
|
goto f3;
|
goto f3;
|
f2:
|
f2:
|
if (i > 40)
|
if (i > 40)
|
goto f4;
|
goto f4;
|
else
|
else
|
goto f5;
|
goto f5;
|
f3:
|
f3:
|
bar (i);
|
bar (i);
|
f4:
|
f4:
|
bar (i);
|
bar (i);
|
f5:
|
f5:
|
bar (i);
|
bar (i);
|
}
|
}
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
foo (0, 1);
|
foo (0, 1);
|
foo (11, 1);
|
foo (11, 1);
|
foo (21, 0);
|
foo (21, 0);
|
foo (41, 0);
|
foo (41, 0);
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.