* g++.dg/other/i386-2.C (dg-options): Add -mavx512pf.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vptestmd-1.c
blob2242314ce08aac5c20a106ebf240799d4bf737d7
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -O2" } */
3 /* { dg-final { scan-assembler-times "vptestmd\[ \\t\]+\[^\n\]*%zmm\[0-7\]\[^\n^k\]*k\[1-7\]\[^\{\]" 1 } } */
4 /* { dg-final { scan-assembler-times "vptestmd\[ \\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 avx512f_test (void)
14 m16 = _mm512_test_epi32_mask (x, x);
15 m16 = _mm512_mask_test_epi32_mask (3, x, x);