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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20020418-2.c] - Diff between revs 149 and 154

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

Rev 149 Rev 154
/* PR optimization/6010 */
/* PR optimization/6010 */
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -funroll-all-loops" } */
/* { dg-options "-O2 -funroll-all-loops" } */
/* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
/* { dg-options "-O2 -funroll-all-loops -march=pentium3" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
 
 
void bar (float);
void bar (float);
 
 
void foo (float y, unsigned long z)
void foo (float y, unsigned long z)
{
{
  int b;
  int b;
  float c = y;
  float c = y;
 
 
  for (b = 0; b < z; b++)
  for (b = 0; b < z; b++)
    {
    {
      bar (c);
      bar (c);
      if (c == y)
      if (c == y)
        c = -y;
        c = -y;
      else
      else
        c = y;
        c = y;
    }
    }
}
}
 
 

powered by: WebSVN 2.1.0

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