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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [vrp61.c] - Rev 689

Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-vrp1-nouid" } */
 
int f (int x, int y)
{
  if (x > -1024 && x < 0 && y > -1024 && y < 0)
    {
      x = x ^ y;
      if (x < 0 || x > 1023)
	return 1234;
    }
  return x;
}
 
/* { dg-final { scan-tree-dump-not "1234" "vrp1" } } */
/* { dg-final { cleanup-tree-dump "vrp1" } } */
 

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.