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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [loop-6.c] - Rev 316

Go to most recent revision | Compare with Previous | Blame | View Log

/* PR optimization/18577 */
/* Origin: Falk Hueffner <falk@debian.org> */
 
/* { dg-do run } */
/* { dg-options "-O2 -funroll-all-loops" } */
 
static float tfcos12[3];
__attribute__((noinline)) double f(double x) { return x; }
int g;
 
int main(void)
{
  int i, j;
  for (i = 0; i < 1; i++) 
    tfcos12[i] = 0.5;
 
  for (i = 0; i < 1; i++)
    {
      tfcos12[i] = 0.5 * f(i);
      for (j = 0; j < 12; j++)
	g++;
    }
 
  return 0;
}
 

Go to most recent revision | 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.