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 |
/* This failed because if conversion didn't handle insv patterns properly. */
|
/* This failed because if conversion didn't handle insv patterns properly. */
|
|
|
union y
|
union y
|
{
|
{
|
int a;
|
int a;
|
unsigned short b;
|
unsigned short b;
|
};
|
};
|
|
|
extern void bar (unsigned short u, union y v);
|
extern void bar (unsigned short u, union y v);
|
|
|
void
|
void
|
foo (int check)
|
foo (int check)
|
{
|
{
|
union y x;
|
union y x;
|
|
|
if (check != 0)
|
if (check != 0)
|
x.b = 1;
|
x.b = 1;
|
else
|
else
|
x.b = 2;
|
x.b = 2;
|
bar (x.b, x);
|
bar (x.b, x);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.