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-ssa-vops" } */
|
/* { dg-options "-O1 -fdump-tree-ssa-vops" } */
|
struct S
|
struct S
|
{
|
{
|
int w, x, y, z;
|
int w, x, y, z;
|
};
|
};
|
struct T
|
struct T
|
{
|
{
|
int r;
|
int r;
|
struct S s;
|
struct S s;
|
};
|
};
|
void bar (struct S, int);
|
void bar (struct S, int);
|
void
|
void
|
foo (int a, struct T b)
|
foo (int a, struct T b)
|
{
|
{
|
struct S x;
|
struct S x;
|
struct S *c = &x;
|
struct S *c = &x;
|
if (a)
|
if (a)
|
c = &b.s;
|
c = &b.s;
|
bar (*c, a);
|
bar (*c, a);
|
}
|
}
|
|
|
/* Make sure that .GLOBAL_VAR is not created when there are no
|
/* Make sure that .GLOBAL_VAR is not created when there are no
|
clobbering calls. */
|
clobbering calls. */
|
/* { dg-final { scan-tree-dump-times "GLOBAL_VAR" 0 "ssa"} } */
|
/* { dg-final { scan-tree-dump-times "GLOBAL_VAR" 0 "ssa"} } */
|
/* { dg-final { cleanup-tree-dump "ssa" } } */
|
/* { dg-final { cleanup-tree-dump "ssa" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.