Forward port r208464 from google/gcc-4_8.
[official-gcc.git] / main / gcc / testsuite / gcc.target / i386 / avx512cd-vptestnmd-1.c
blob39797a8fca4fe9401247bb5beb35d7e6fad4237f
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512cd -O2" } */
3 /* { dg-final { scan-assembler-times "vptestnmd\[ \\t\]+\[^\n\]*%zmm\[0-7\]\[^\n^k\]*k\[1-7\]\[^\{\]" 1 } } */
4 /* { dg-final { scan-assembler-times "vptestnmd\[ \\t\]+\[^\n\]*%zmm\[0-7\]\[^\n^k\]*k\[1-7\]\{" 1 } } */
6 #include <immintrin.h>
8 volatile __m512i x;
9 volatile __mmask16 m16;
11 void extern
12 avx512cd_test (void)
14 m16 = _mm512_testn_epi32_mask (x, x);
15 m16 = _mm512_mask_testn_epi32_mask (3, x, x);