1 /* { dg-do compile } */
2 
3 #define N 320
4 #define M 1024
5 unsigned short in[N+M];
6 unsigned short coeff[M];
7 unsigned int out[N];
8 
9 /* Outer-loop vectorization.  */
10 
11 void
foo()12 foo (){
13   int i,j;
14   unsigned short 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_short_mult && { ! vect_no_align } } } } } */
26 /* { dg-final { scan-tree-dump-times "zero step in outer loop." 1 "vect" } } */
27 /* { dg-final { cleanup-tree-dump "vect" } } */
28