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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20070925-1.c] - Rev 816

Compare with Previous | Blame | View Log

/* PR tree-optimization/32694 */
 
typedef signed long long int WordS64;
typedef unsigned long long int Word64;
 
int
foo (Word64 * p)
{
  while (1)
    {
      WordS64 c = 0x1llu;
      WordS64 x = *p;
      if (c >= 0)
	{
	  if (x > (WordS64) 0x7FFFFFFFFFFFFFFFll - c)
	    return 6;
	}
      else if (x < (WordS64) 0x8000000000000000ll - c)
	return 7;
      p++;
    }
}
 

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.