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/] [tree-ssa/] [loop-23.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -funroll-loops -fdump-tree-cunroll-details" } */
3
 
4
void bla(int);
5
 
6
void foo(void)
7
{
8
  int i;
9
 
10
  /* This loop used to appear to be too large for unrolling.  */
11
  for (i = 0; i < 4; i++)
12
    {
13
      bla (i);
14
      bla (2*i);
15
      bla (3*i);
16
      bla (4*i);
17
      bla (5*i);
18
      bla (6*i);
19
      bla (7*i);
20
      bla (8*i);
21
    }
22
}
23
 
24
/* { dg-final { scan-tree-dump-times "Unrolled loop 1 completely" 1 "cunroll" } } */
25
 
26
/* { dg-final { cleanup-tree-dump "cunroll" } } */

powered by: WebSVN 2.1.0

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