URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 384 |
typedef struct { int s, t; } C;
|
typedef struct { int s, t; } C;
|
C x;
|
C x;
|
int foo (void);
|
int foo (void);
|
void bar (int);
|
void bar (int);
|
|
|
int baz (void)
|
int baz (void)
|
{
|
{
|
int a = 0, c, d = 0;
|
int a = 0, c, d = 0;
|
C *b = &x;
|
C *b = &x;
|
|
|
while ((c = foo ()))
|
while ((c = foo ()))
|
switch(c)
|
switch(c)
|
{
|
{
|
case 23:
|
case 23:
|
bar (1);
|
bar (1);
|
break;
|
break;
|
default:
|
default:
|
break;
|
break;
|
}
|
}
|
|
|
if (a == 0 || (a & 1))
|
if (a == 0 || (a & 1))
|
{
|
{
|
if (b->s)
|
if (b->s)
|
{
|
{
|
if (a)
|
if (a)
|
bar (1);
|
bar (1);
|
else
|
else
|
a = 16;
|
a = 16;
|
}
|
}
|
else if (b->t)
|
else if (b->t)
|
{
|
{
|
if (a)
|
if (a)
|
bar (1);
|
bar (1);
|
else
|
else
|
a = 32;
|
a = 32;
|
}
|
}
|
}
|
}
|
|
|
if (d && (a & ~127))
|
if (d && (a & ~127))
|
bar (2);
|
bar (2);
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.