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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [pr33434-3.c] - Diff between revs 298 and 338

Only display areas with differences | Details | Blame | View Log

Rev 298 Rev 338
/* PR tree-optimization/33434 */
/* PR tree-optimization/33434 */
/* { dg-do run } */
/* { dg-do run } */
/* { dg-options "-O3" } */
/* { dg-options "-O3" } */
 
 
int k;
int k;
 
 
void __attribute__((noinline)) f2 (int b)
void __attribute__((noinline)) f2 (int b)
{
{
  k = b - 1;
  k = b - 1;
}
}
 
 
void f1 (int a, int b)
void f1 (int a, int b)
{
{
  f2 (b);
  f2 (b);
  a = 1;
  a = 1;
  b = 1;
  b = 1;
  if (a)
  if (a)
    while (b --)
    while (b --)
      k = 1;
      k = 1;
  else
  else
    if (b != 1)
    if (b != 1)
      __builtin_abort ();
      __builtin_abort ();
}
}
 
 
int main (void)
int main (void)
{
{
  f1 (1, 1);
  f1 (1, 1);
  if (k != 1)
  if (k != 1)
    __builtin_abort ();
    __builtin_abort ();
  return 0;
  return 0;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.