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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ldist-12.c] - Blame information for rev 826

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-all" } */
3
 
4
int foo (int * __restrict__ ia,
5
         int * __restrict__ ib,
6
         int * __restrict__ oxa,
7
         int * __restrict__ oxb)
8
{
9
  int i;
10
  int oya[52], oyb[52];
11
 
12
  for (i=0; i < 52; i++)
13
    {
14
      oya[i] = (ia[i] * oxa[i]) >> 10;
15
      oyb[i] = (ib[i] * oxb[i]) >> 10;
16
    }
17
 
18
  return oya[22] + oyb[21];
19
}
20
 
21
/* { dg-final { scan-tree-dump-times "distributed: split to 2 loops" 1 "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.