1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_double } */
3 /* { dg-additional-options "-mavx" { target avx } } */
4
5 double x[10], y[6], z[4];
6
7 void foo ()
8 {
9 x[0] = y[0];
10 x[1] = y[1];
11 x[2] = y[2];
12 x[3] = y[3];
13 x[4] = y[4];
14 x[5] = y[5];
15 x[6] = z[0] + 1.;
16 x[7] = z[1] + 1.;
17 x[8] = z[2] + 1.;
18 x[9] = z[3] + 1.;
19 }
20
21 /* We want to have the store group split into 4, 2, 4 when using 32byte vectors.
22 Unfortunately it does not work when 64-byte vectors are available. */
23 /* { dg-final { scan-tree-dump-not "from scalars" "slp2" { xfail amdgcn-*-* } } } */