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.c-torture/] [compile/] [pr41101.c] - Diff between revs 297 and 338

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

Rev 297 Rev 338
int func(int);
int func(int);
 
 
void
void
bug(int* x, int* y, unsigned long int N)
bug(int* x, int* y, unsigned long int N)
{
{
  unsigned long int i;
  unsigned long int i;
  int* t;
  int* t;
 
 
  while (1)
  while (1)
    {
    {
      for (i=1; i<=N; i++)
      for (i=1; i<=N; i++)
        {
        {
          y[i] = func(x[i] - x[1]);
          y[i] = func(x[i] - x[1]);
          if (y[i])
          if (y[i])
            return;
            return;
        }
        }
      t=x; x=y; y=t;
      t=x; x=y; y=t;
    }
    }
}
}
 
 

powered by: WebSVN 2.1.0

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