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.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [data-dep-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile { target int32plus } } */
2
/* { dg-options "-O2 -ftree-loop-linear -fdump-tree-ltrans-all" } */
3
 
4
int foo (int n, int m)
5
{
6
  int a[10000][10000];
7
  int i, j, k;
8
 
9
  for(k = 0; k < 1234; k++)
10
    for(j = 0; j < 5; j++)
11
      for(i = 0; i < 67; i++)
12
        {
13
          a[j+i-(-m+n+3)][i-k+4] = a[k+j][i];
14
        }
15
 
16
  return a[0][0];
17
}
18
 
19
 
20
/* For the data dependence analysis of the outermost loop, the
21
   evolution of "k+j" should be instantiated in the outermost loop "k"
22
   and the evolution should be taken in the innermost loop "i".  The
23
   pattern below ensures that the evolution is not computed in the
24
   outermost "k" loop: the 4 comes from the instantiation of the
25
   number of iterations of loop "j".  */
26
 
27
/* { dg-final { scan-tree-dump-times "4, \\+, 1" 0 "ltrans" } } */
28
/* { dg-final { cleanup-tree-dump "ltrans" } } */

powered by: WebSVN 2.1.0

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