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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [pr47140.c] - Rev 688

Compare with Previous | Blame | View Log

/* PR tree-optimization/47140 */
 
static inline int
foo (int x, short y)
{
  return y == 0 ? x : x + y;
}
 
static inline unsigned short
bar (unsigned short x, unsigned char y)
{
  return x - y;
}
 
int w;
 
int baz (void);
 
int
test (void)
{
  int i;
  for (i = 0; i < 50; i++)
    w += foo ((unsigned char) (1 + baz ()) >= bar (0, 1), 0);
}
 

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.