blob: a08362f4591e396c03d9a1942f1eedfc8b1efd8a [file] [log] [blame]
// { dg-do compile }
// { dg-additional-options "-mavx512bw -mavx512dq" { target { i?86-*-* x86_64-*-* } } }
#define N 1024
double a[N];
bool b[N];
bool c;
void test ()
{
int i;
for (i = 0; i < N; i++)
if (b[i] != c)
a[i] = 0.0;
else
a[i] = 1.0;
}
// { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { i?86-*-* x86_64-*-* } } } }