OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr15245.c] - Diff between revs 297 and 338

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

Rev 297 Rev 338
/*  Testcase from <marcus@jet.franken.de>
/*  Testcase from <marcus@jet.franken.de>
    PR optimization/15245
    PR optimization/15245
    This used to ICE as convert was used
    This used to ICE as convert was used
    in tree-ssa-phiopt which created non gimple
    in tree-ssa-phiopt which created non gimple
    code.   */
    code.   */
 
 
char *f(char *x, int flag)
char *f(char *x, int flag)
{
{
    char *ret = (char*)0;
    char *ret = (char*)0;
 
 
 
 
    if( x > (char*)1 ) {
    if( x > (char*)1 ) {
      if(x)
      if(x)
        return (char*)0;
        return (char*)0;
    } else {
    } else {
      if( flag & 1 )
      if( flag & 1 )
        ret = (char*)1;
        ret = (char*)1;
      flag |= 2;
      flag |= 2;
    }
    }
    return ret;
    return ret;
}
}
 
 

powered by: WebSVN 2.1.0

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