OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr44858.c] - Rev 414

Compare with Previous | Blame | View Log

/* PR rtl-optimization/44858 */
 
extern void abort (void);
int a = 3;
int b = 1;
 
__attribute__((noinline)) long long
foo (int x, int y)
{
  return x / y;
}
 
__attribute__((noinline)) int
bar (void)
{
  int c = 2;
  c &= foo (1, b) > b;
  b = (a != 0) | c;
  return c;
}
 
int
main (void)
{
  if (bar () != 0 || b != 1)
    abort ();
  return 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.