1 /* { dg-do compile } */
2 /* { dg-additional-options "-fvect-cost-model=dynamic" } */
3 /* { dg-require-effective-target vect_double } */
4
5 double a[128][128];
6 double b[128];
7
foo(void)8 void foo(void)
9 {
10 b[0] = a[0][0];
11 b[1] = a[1][0];
12 b[2] = a[2][0];
13 b[3] = a[3][0];
14 }
15
16 /* ??? The profitability check is not reached because we give up on the
17 gaps we access earlier. */
18 /* { dg-final { scan-tree-dump "not profitable" "slp2" { xfail *-*-* } } } */
19 /* { dg-final { scan-tree-dump-times "Basic block will be vectorized" 0 "slp2" } } */
20