annotate gcc/testsuite/gcc.dg/vect/vect-outer-4c-big-array.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* { dg-do compile } */
kono
parents:
diff changeset
2 /* { dg-require-effective-target vect_int } */
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 #define N 320
kono
parents:
diff changeset
5 #define M 1024
kono
parents:
diff changeset
6 unsigned short in[N+M];
kono
parents:
diff changeset
7 unsigned short coeff[M];
kono
parents:
diff changeset
8 unsigned int out[N];
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 /* Outer-loop vectorization. */
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 void
kono
parents:
diff changeset
13 foo (){
kono
parents:
diff changeset
14 int i,j;
kono
parents:
diff changeset
15 unsigned short diff;
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 for (i = 0; i < N; i++) {
kono
parents:
diff changeset
18 diff = 0;
kono
parents:
diff changeset
19 for (j = 0; j < M; j+=8) {
kono
parents:
diff changeset
20 diff += in[j+i]*coeff[j];
kono
parents:
diff changeset
21 }
kono
parents:
diff changeset
22 out[i]=diff;
kono
parents:
diff changeset
23 }
kono
parents:
diff changeset
24 }
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { target { vect_short_mult && { ! vect_no_align } } } } } */
kono
parents:
diff changeset
27 /* { dg-final { scan-tree-dump-times "zero step in outer loop." 1 "vect" } } */