URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 338 |
/* Test that SRA produces valid gimple when handling both type punning by means
|
/* Test that SRA produces valid gimple when handling both type punning by means
|
of VCE and creating an access to a union. */
|
of VCE and creating an access to a union. */
|
|
|
union U {
|
union U {
|
struct something *sth;
|
struct something *sth;
|
void *nothing;
|
void *nothing;
|
};
|
};
|
|
|
void
|
void
|
foo (union U *target, void *p)
|
foo (union U *target, void *p)
|
{
|
{
|
union U u;
|
union U u;
|
|
|
u.nothing = p;
|
u.nothing = p;
|
*target = u;
|
*target = u;
|
return;
|
return;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.