1/* { dg-do compile } */
2/* { dg-options "-O2 -ftree-vectorize -mavx2" { target avx2 } } */
3
4int a[1024];
5
6int
7foo (int *p)
8{
9  int i;
10  for (i = 0; i < 1024; i++)
11    {
12      int t;
13      if (a[i] < 30)
14	t = *p;
15      else
16	t = a[i] + 12;
17      a[i] = t;
18    }
19}
20
21/* { dg-final { cleanup-tree-dump "vect" } } */
22