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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20081203-1.c] - Rev 859

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

/* PR rtl-optimization/38281 */
/* Reporter: John Regehr <regehr@cs.utah.edu> */
/* Testcase by Jakub Jelinek <jakub@redhat.com> */
 
inline unsigned short
foo (unsigned short x, unsigned short y)
{
  if (y == 0)
    return x;
  return x / y;
}
 
unsigned short a, b, c;
 
extern int baz (int, int);
 
void
bar (void)
{
  int d = 0x3D75D162;
  a = foo (b > d, baz (0, 1));
  for (c = 0; c; c = 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.