tree-vectorizer.h (struct _slp_oprnd_info): Remove first_const_oprnd field, rename...
[gcc.git] / gcc / testsuite / gcc.dg / vect / slp-39.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_double } */
3
4 double x[1024], y[1024], z[1024];
5 void foo (double w)
6 {
7 int i;
8 for (i = 0; i < 1023; i+=2)
9 {
10 z[i] = x[i] + 1;
11 z[i+1] = x[i+1] + w;
12 }
13 }
14 void bar (double w)
15 {
16 int i;
17 for (i = 0; i < 1023; i+=2)
18 {
19 z[i] = x[i] + w;
20 z[i+1] = x[i+1] + 1;
21 }
22 }
23
24 /* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 2 "vect" } } */
25 /* { dg-final { cleanup-tree-dump "vect" } } */