URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O1 -fdump-tree-optimized" } */
|
/* { dg-options "-O1 -fdump-tree-optimized" } */
|
|
|
struct S
|
struct S
|
{
|
{
|
int a, b, c;
|
int a, b, c;
|
int z[20];
|
int z[20];
|
};
|
};
|
|
|
int foo (int d)
|
int foo (int d)
|
{
|
{
|
struct S s;
|
struct S s;
|
|
|
s.a = d;
|
s.a = d;
|
return s.a + s.b;
|
return s.a + s.b;
|
}
|
}
|
|
|
/* There should be no reference to s.b. */
|
/* There should be no reference to s.b. */
|
/* { dg-final { scan-tree-dump-times "= s\.b" 0 "optimized"} } */
|
/* { dg-final { scan-tree-dump-times "= s\.b" 0 "optimized"} } */
|
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
/* { dg-final { cleanup-tree-dump "optimized" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.