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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [vrp12.c] - Diff between revs 816 and 826

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

Rev 816 Rev 826
/* { dg-do link } */
/* { dg-do link } */
/* { dg-options -O2 } */
/* { dg-options -O2 } */
 
 
foo (int i)
foo (int i)
{
{
  int x;
  int x;
 
 
  x = i;
  x = i;
  if (i < -10)
  if (i < -10)
    {
    {
      x = __builtin_abs (i);
      x = __builtin_abs (i);
      /* VRP was incorrectly folding this to if (1).  */
      /* VRP was incorrectly folding this to if (1).  */
      if (x < 0)
      if (x < 0)
        link_error ();
        link_error ();
    }
    }
 
 
  return x;
  return x;
}
}
 
 
main()
main()
{
{
  foo (-30);
  foo (-30);
}
}
 
 

powered by: WebSVN 2.1.0

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