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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [vect-outer-4b.c] - Blame information for rev 826

Details | Compare with Previous | View Log

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