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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr44539.c] - Rev 801

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

/* PR tree-optimization/44539 */
/* { dg-do compile } */
/* { dg-options "-ftracer -freorder-blocks -O2" } */
 
void bar (int file);
extern int baz (void);
 
void noret1 ()
{
  bar (0);
  __builtin_exit (0);
}
 
void noret2 ()
{
  __builtin_exit (0);
}
 
void bar (int i)
{
  if (baz ())
    noret1 (i);
}
 
void foo (int i)
{
  if (~i) bar (i);
  i ? noret1 () : noret2 ();
}
 

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.