openmp: Add testcases for omp_max_vf
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / bb-slp-54.c
blobd05ce33310da6dcf84d2bcf51dc37aa25854e7e8
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_double } */
4 double a[2], b[2], c[2];
6 void foo(int flag)
8 double tem1, tem2;
9 if (flag)
11 tem1 = a[0];
12 tem2 = a[1];
14 else
16 tem1 = b[0];
17 tem2 = b[1];
19 c[0] = tem1;
20 c[1] = tem2;
23 /* { dg-final { scan-tree-dump-times "transform load" 2 "slp2" } } */