1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
// { dg-do compile } // { dg-additional-options "-mavx512bw -mavx512dq" { target { i?86-*-* x86_64-*-* } } } #define N 1024 double a[N]; bool b[N]; char c[N]; void test () { int i; #pragma omp simd for (i = 0; i < N; i++) if ((c[i] > 0) && b[i]) a[i] = 0.0; else a[i] = 1.0; }