Add compile command to each testcase
[gcc-vect-testsuite.git] / O3-pr39675-2.c
blob400ff29164e4b3cd79b49322244757fdce40d6d9
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
4 #define N 128
6 int out[N*4], out2[N], in[N*4];
8 void
9 foo ()
11 int i, a0, a1, a2, a3;
13 for (i = 0; i < N; i++)
15 a0 = in[i*4];
16 a1 = in[i*4 + 1];
17 a2 = in[i*4 + 2];
18 a3 = in[i*4 + 3];
20 out[i*4] = a0;
21 out[i*4 + 1] = a1;
22 out[i*4 + 2] = a2;
23 out[i*4 + 3] = a3;
25 out2[i] = a0;
29 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_strided4 } } } */
30 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 1 "vect" { target vect_strided4 } } } */
31 /* { dg-final { cleanup-tree-dump "vect" } } */