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-cddce1" } */
|
/* { dg-options "-O -fdump-tree-cddce1" } */
|
|
|
struct object { int field; };
|
struct object { int field; };
|
void o(struct object *);
|
void o(struct object *);
|
int globl;
|
int globl;
|
void t(int x)
|
void t(int x)
|
{
|
{
|
struct object a, b;
|
struct object a, b;
|
struct object *p;
|
struct object *p;
|
o(&a);
|
o(&a);
|
if (x)
|
if (x)
|
p = &a;
|
p = &a;
|
else
|
else
|
p = &b;
|
p = &b;
|
p->field = 1;
|
p->field = 1;
|
globl = 0;
|
globl = 0;
|
return;
|
return;
|
}
|
}
|
|
|
/* The global store should not prevent deleting the store to p->field. */
|
/* The global store should not prevent deleting the store to p->field. */
|
|
|
/* { dg-final { scan-tree-dump-not "p_.->field" "cddce1" } } */
|
/* { dg-final { scan-tree-dump-not "p_.->field" "cddce1" } } */
|
/* { dg-final { cleanup-tree-dump "cddce1" } } */
|
/* { dg-final { cleanup-tree-dump "cddce1" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.