PR target/55146
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-outer-4a-big-array.c
blobaf9d2a88b2930956f302dfb9f43547099b507de1
1 /* { dg-do compile } */
3 #define N 512
4 #define M 1024
5 signed short in[N+M];
6 signed short coeff[M];
7 signed short out[N];
9 /* Outer-loop vectorization. */
11 void
12 foo (){
13 int i,j;
14 int diff;
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];
21 out[i]=diff;
25 /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { target { vect_widen_mult_hi_to_si && vect_pack_trunc } } } } */
26 /* { dg-final { cleanup-tree-dump "vect" } } */