1 /* { dg-do compile } */
2 /* { dg-options "-mavx512dq -mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vandnpd\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)"  1 } } */
4 /* { dg-final { scan-assembler-times "vandnpd\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vandnpd\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
6 /* { dg-final { scan-assembler-times "vandnpd\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
7 /* { dg-final { scan-assembler-times "vandnpd\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
8 /* { dg-final { scan-assembler-times "vandnpd\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
9 /* { dg-final { scan-assembler-times "vandnpd\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
10 
11 #include <immintrin.h>
12 
13 volatile __m512d z;
14 volatile __m256d y;
15 volatile __m128d x;
16 volatile __mmask8 m;
17 
18 void extern
avx512dq_test(void)19 avx512dq_test (void)
20 {
21   z = _mm512_andnot_pd (z, z);
22   z = _mm512_mask_andnot_pd (z, m, z, z);
23   z = _mm512_maskz_andnot_pd (m, z, z);
24   y = _mm256_mask_andnot_pd (y, m, y, y);
25   y = _mm256_maskz_andnot_pd (m, y, y);
26   x = _mm_mask_andnot_pd (x, m, x, x);
27   x = _mm_maskz_andnot_pd (m, x, x);
28 }
29