Imported Upstream version 4.7.3
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / vect / slp-38.c
1 /* { dg-do compile } */
2
3 typedef struct {
4     float l, h;
5 } tFPinterval;
6
7 tFPinterval X[1024];
8 tFPinterval Y[1024];
9 tFPinterval Z[1024];
10
11 void Compute(void)
12 {
13   int d;
14   for (d= 0; d < 1024; d++)
15     {
16       Y[d].l= X[d].l + X[d].h;
17       Y[d].h= Y[d].l;
18       Z[d].l= X[d].l;
19       Z[d].h= X[d].h;
20     }
21 }
22
23 /* { dg-final { scan-tree-dump-times "vectorized 1 loops in function" 1 "vect" { target { vect_float && vect_perm } } } } */
24 /* { dg-final { cleanup-tree-dump "vect" } } */