OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [921206-1.c] - Diff between revs 297 and 384

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

Rev 297 Rev 384
double sqrt(double),fabs(double),sin(double);
double sqrt(double),fabs(double),sin(double);
int sxs;
int sxs;
int sys;
int sys;
f()
f()
{
{
  int l;
  int l;
  int sm = -52, sx = 52;
  int sm = -52, sx = 52;
  char *smap;
  char *smap;
  for (l = 0; l < 9; l++)
  for (l = 0; l < 9; l++)
    {
    {
      double g;
      double g;
      int cx, cy, gx, gy, x, y;
      int cx, cy, gx, gy, x, y;
      gx = 2 > g / 3 ? 2 : g / 3;
      gx = 2 > g / 3 ? 2 : g / 3;
      gy = 2 > g / 3 ? 2 : g / 3;
      gy = 2 > g / 3 ? 2 : g / 3;
      for (y = 0 > cy - gy ? 0 : cy - gy; y <= (sys - 1 < cy + gy ? sys : cy + gy); y++)
      for (y = 0 > cy - gy ? 0 : cy - gy; y <= (sys - 1 < cy + gy ? sys : cy + gy); y++)
        {
        {
          int sx = 0 > cx - gx ? 0 : cx - gx;
          int sx = 0 > cx - gx ? 0 : cx - gx;
          short *ax = (short *) (y * sxs + sx);
          short *ax = (short *) (y * sxs + sx);
 
 
          for (x = sx; x <= (sxs - 1 < cx + gx ? sxs - 1 : cx + gx); x++)
          for (x = sx; x <= (sxs - 1 < cx + gx ? sxs - 1 : cx + gx); x++)
            {
            {
              double c=2.25, z=sqrt(fabs(1-c)), cz=(c>1?0.0:-10)>z?c>1?0:1:z;
              double c=2.25, z=sqrt(fabs(1-c)), cz=(c>1?0.0:-10)>z?c>1?0:1:z;
            }
            }
        }
        }
    }
    }
  for (l = sm; l <= sx; l++)
  for (l = sm; l <= sx; l++)
    smap[l] = l > 0 ? 1 + foo(sin(.1 * l / sx)) : 1 - foo(sin(.1 * l / sm));
    smap[l] = l > 0 ? 1 + foo(sin(.1 * l / sx)) : 1 - foo(sin(.1 * l / sm));
}
}
 
 

powered by: WebSVN 2.1.0

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