2016-12-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / testsuite / g++.dg / vect / simd-bool-comparison-1.cc
bloba08362f4591e396c03d9a1942f1eedfc8b1efd8a
1 // { dg-do compile }
2 // { dg-additional-options "-mavx512bw -mavx512dq" { target { i?86-*-* x86_64-*-* } } }
4 #define N 1024
6 double a[N];
7 bool b[N];
8 bool c;
10 void test ()
12 int i;
14 for (i = 0; i < N; i++)
15 if (b[i] != c)
16 a[i] = 0.0;
17 else
18 a[i] = 1.0;
21 // { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { i?86-*-* x86_64-*-* } } } }