2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vpcmpd-1.c
bloba98f67f6bda27009b96f3a8051193b82c323e4a1
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx512f" } */
3 /* { dg-final { scan-assembler-times "vpcmpd\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n^k\]*%k\[1-7\](?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vpcmpd\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n^k\]*%k\[1-7\]\{%k\[0-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
6 #include <immintrin.h>
8 volatile __m512i x;
9 volatile __mmask16 m;
11 void extern
12 avx512f_test (void)
14 m = _mm512_cmp_epi32_mask (x, x, _MM_CMPINT_GE);
15 m = _mm512_mask_cmp_epi32_mask (m, x, x, _MM_CMPINT_NLE);