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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [loop-6.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR optimization/18577 */
2
/* Origin: Falk Hueffner <falk@debian.org> */
3
 
4
/* { dg-do run } */
5
/* { dg-options "-O2 -funroll-all-loops" } */
6
 
7
static float tfcos12[3];
8
__attribute__((noinline)) double f(double x) { return x; }
9
int g;
10
 
11
int main(void)
12
{
13
  int i, j;
14
  for (i = 0; i < 1; i++)
15
    tfcos12[i] = 0.5;
16
 
17
  for (i = 0; i < 1; i++)
18
    {
19
      tfcos12[i] = 0.5 * f(i);
20
      for (j = 0; j < 12; j++)
21
        g++;
22
    }
23
 
24
  return 0;
25
}

powered by: WebSVN 2.1.0

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