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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr44858.c] - Rev 849

Go to most recent revision | 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;
}
 

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.