2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / vect-cond-1.c
blob7cea69154d4b2f56989def5c7d44e0dd7b6df461
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize -mavx2" { target avx2 } } */
4 int a[1024];
6 int
7 foo (int *p)
9 int i;
10 for (i = 0; i < 1024; i++)
12 int t;
13 if (a[i] < 30)
14 t = *p;
15 else
16 t = a[i] + 12;
17 a[i] = t;