PR target/55146
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-outer-4e.c
blob243cc1af7ea05228c89073dfa6918e7a159b68c8
1 /* { dg-do compile } */
3 #define N 40
4 #define M 128
5 unsigned int in[N+M];
6 unsigned short out[N];
8 /* Outer-loop vectorization. */
10 void
11 foo (){
12 int i,j;
13 unsigned int diff;
15 for (i = 0; i < N; i++) {
16 diff = 0;
17 for (j = 0; j < M; j+=8) {
18 diff += in[j+i];
20 out[i]=(unsigned short)diff;
23 return;
26 /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { xfail *-*-* } } } */
27 /* { dg-final { cleanup-tree-dump "vect" } } */