URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* Reduced from PR optimization/5076, PR optimization/2847 */
|
/* Reduced from PR optimization/5076, PR optimization/2847 */
|
|
|
static int count = 0;
|
static int count = 0;
|
|
|
static void
|
static void
|
inc (void)
|
inc (void)
|
{
|
{
|
count++;
|
count++;
|
}
|
}
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
int iNbr = 1;
|
int iNbr = 1;
|
int test = 0;
|
int test = 0;
|
while (test == 0)
|
while (test == 0)
|
{
|
{
|
inc ();
|
inc ();
|
if (iNbr == 0)
|
if (iNbr == 0)
|
break;
|
break;
|
else
|
else
|
{
|
{
|
inc ();
|
inc ();
|
iNbr--;
|
iNbr--;
|
}
|
}
|
test = 1;
|
test = 1;
|
}
|
}
|
if (count != 2)
|
if (count != 2)
|
abort ();
|
abort ();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.