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/] [execute/] [20070517-1.c] - Rev 826

Compare with Previous | Blame | View Log

/* PR rtl-optimization/31691 */
/* Origin: Chi-Hua Chen <stephaniechc-gccbug@yahoo.com> */
 
extern void abort (void);
 
static int get_kind(int) __attribute__ ((noinline));
 
static int get_kind(int v)
{
  volatile int k = v;
  return k;
}
 
static int some_call(void) __attribute__ ((noinline));
 
static int some_call(void)
{
  return 0;
}
 
static void example (int arg)
{
  int tmp, kind = get_kind (arg);
 
  if (kind == 9 || kind == 10 || kind == 5)
    {
      if (some_call() == 0)
        {
          if (kind == 9 || kind == 10)
            tmp = arg;
          else
            abort();
        }
    }
} 
 
int main(void)
{
  example(10);
  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.