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/] [vect/] [vect-outer-4j.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
 
3
#define N 96
4
#define M 128
5
unsigned char in[N+M];
6
unsigned short out[N];
7
 
8
/* Outer-loop vectorization. */
9
 
10
void
11
foo (){
12
  int i,j;
13
  unsigned short diff;
14
 
15
  for (i = 0; i < N; i++) {
16
    diff = 0;
17
    for (j = 0; j < M; j+=8) {
18
      diff += in[j+i];
19
    }
20
    out[i]=diff;
21
  }
22
}
23
 
24
/* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { target vect_unpack } } } */
25
/* { dg-final { cleanup-tree-dump "vect" } } */

powered by: WebSVN 2.1.0

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