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 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O -fdump-tree-fre" } */
|
/* { dg-options "-O -fdump-tree-fre" } */
|
|
|
struct a
|
struct a
|
{
|
{
|
union
|
union
|
{
|
{
|
int a;
|
int a;
|
int b;
|
int b;
|
};
|
};
|
union
|
union
|
{
|
{
|
int c;
|
int c;
|
int d;
|
int d;
|
};
|
};
|
int e;
|
int e;
|
};
|
};
|
|
|
int f(struct a *c)
|
int f(struct a *c)
|
{
|
{
|
int d;
|
int d;
|
c->e = 2;
|
c->e = 2;
|
d = c->a;
|
d = c->a;
|
c->c = 1;
|
c->c = 1;
|
return c->a + d;
|
return c->a + d;
|
}
|
}
|
|
|
/* We should have CSEd the load from c->a. */
|
/* We should have CSEd the load from c->a. */
|
|
|
/* { dg-final { scan-tree-dump-times "c_.*\\\.a" 1 "fre" } } */
|
/* { dg-final { scan-tree-dump-times "c_.*\\\.a" 1 "fre" } } */
|
/* { dg-final { cleanup-tree-dump "fre" } } */
|
/* { dg-final { cleanup-tree-dump "fre" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.