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/] [vrp44.c] - Rev 816

Go to most recent revision | Compare with Previous | Blame | View Log

/* { dg-do link } */
/* { dg-options "-O2" } */
 
extern void link_error (void);
 
void test1(int i)
{
  if (i >= -5 && i <= 8)
    {
      unsigned int j = i + 1;
      if (j == -5)
	link_error ();
      if (j == 10)
	link_error ();
    }
}
 
void test2(unsigned int i)
{
  if (i >= -5 || i <= 8)
    {
      int j = i;
      if (j == -6)
	link_error ();
      if (j == 9)
	link_error ();
    }
}
 
int main() { return 0; }
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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