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.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [vrp30.c] - Diff between revs 298 and 384

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 384
/* { dg-do link } */
/* { dg-do link } */
/* { dg-options "-O2" } */
/* { dg-options "-O2" } */
 
 
extern int link_error (int);
extern int link_error (int);
 
 
int tst2 (int x, int y)
int tst2 (int x, int y)
{
{
  /* VRP should be able to extract range information for
  /* VRP should be able to extract range information for
     x and y out of this TRUTH_AND_EXPR.  */
     x and y out of this TRUTH_AND_EXPR.  */
  if ((x > 5555) && (y < 6666))
  if ((x > 5555) && (y < 6666))
    {
    {
      if (x > 5555)
      if (x > 5555)
        if (y < 6666)
        if (y < 6666)
          return 1111;
          return 1111;
        else
        else
          return link_error (2222);
          return link_error (2222);
      else
      else
        if (y < 6666)
        if (y < 6666)
          return link_error (3333);
          return link_error (3333);
        else
        else
          return link_error (4444);
          return link_error (4444);
    }
    }
  else
  else
    return 0;
    return 0;
}
}
 
 
int main()
int main()
{
{
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

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