OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20040313-1.c] - Diff between revs 298 and 338

Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 338
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O3" } */
/* { dg-options "-O3" } */
 
 
/* Test provided by Volker Reichelt in PR 14553.  The redundant PHI
/* Test provided by Volker Reichelt in PR 14553.  The redundant PHI
   node elimination pass was not using the right API functions to
   node elimination pass was not using the right API functions to
   propagate pointers, which resulted in dereferenced pointers that
   propagate pointers, which resulted in dereferenced pointers that
   did not have memory tags associated with them.  */
   did not have memory tags associated with them.  */
 
 
void foo(int* p)
void foo(int* p)
{
{
    int i;
    int i;
    for (i=1; i>0; --i, ++p)
    for (i=1; i>0; --i, ++p)
        *p=0;
        *p=0;
}
}
 
 
void bar(int* p) { foo(p); }
void bar(int* p) { foo(p); }
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.