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/] [ldist-13.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 -ftree-loop-distribution -fdump-tree-ldist-details" } */
3
 
4
float * __restrict__ x;
5
float * __restrict__ y;
6
 
7
float foo (int n)
8
{
9
  int i;
10
  float tmp = 0.0;
11
  for (i = 0; i < n; ++i)
12
    {
13
      x[i] = 0.0;
14
      tmp += y[i];
15
    }
16
  return tmp;
17
}
18
 
19
/* We should apply loop distribution.  */
20
 
21
/* { dg-final { scan-tree-dump "Loop 1 distributed: split to 2 loops" "ldist" } } */
22
/* { dg-final { cleanup-tree-dump "ldist" } } */

powered by: WebSVN 2.1.0

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