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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr44012.c] - Rev 816

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

/* { dg-do compile } */
/* { dg-options "-O -fgcse" } */
 
extern void fe ();
 
extern int i;
 
static inline void
FX (void (*f) ())
{
  fe ();
  (*f) ();
}
 
static inline void
f4 ()
{
  for (;;)
    switch (i)
      {
      case 306:
      FX (&fe);
      break;
      default:
      return;
      }
}
 
static inline void
f3 ()
{
  f4 ();
  for (;;)
    switch (i)
      {
      case 267:
      FX (&f4);
      break;
      default:
      return;
      }
}
 
static inline void
f2 ()
{
  f3 ();
  while (i)
    FX (&f3);
}
 
void
f1 ()
{
  f2 ();
  while (1)
    FX (&f2);
}
 

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.