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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [loop-10.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-optimized" } */
3
/* { dg-require-effective-target int32plus } */
4
 
5
int bar (void);
6
 
7
void foo (void)
8
{
9
  unsigned i, j, n;
10
 
11
  for (i = 0; i < 100000; i++)
12
    ;
13
 
14
  n = bar ();
15
  for (i = 0; i < n; i++)
16
    ;
17
 
18
  for (i = 0; i < n; i++)
19
    for (j = 0; j < n; j++)
20
      ;
21
 
22
  /* These should not be removed.  */
23
  for (i = 0; i < 10000; i++)
24
    bar ();
25
 
26
  for (i = 0; i != n; i += 2)
27
    ;
28
}
29
 
30
/* { dg-final { scan-tree-dump-times "if " 3 "optimized" } } */
31
/* { dg-final { scan-tree-dump-times "bar " 2 "optimized" } } */
32
 
33
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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