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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr37341.c] - Rev 298

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

/* PR rtl-optimization/37341 */
 
short int a;
int b;
 
static inline int
f1 (int x, int y)
{
  if (x < 0 || y < 0 || y >= sizeof (int) * 8 || x > (1 >> y))
    return x;
}
 
static inline unsigned int
f2 (int x, int y)
{
  if (y <= 0 && x && y < __INT_MAX__ / x)
    return x;
  return x * y;
}
 
int
f3 (void)
{
  return (signed char) 0xb6;
}
 
unsigned int
f4 (unsigned int x)
{
  while (1)
    {
      if ((f2 (f3 (), (f1 (a, b)))) < x)
	return 1;
    }
}
 

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.