2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vpcompressd-1.c
blob5ba772a3496fcd3d0f07c8e52d5dfe827519df45
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -O2" } */
3 /* { dg-final { scan-assembler-times "vpcompressd\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vpcompressd\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vpcompressd\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\[^\n\]*\\)\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
7 #include <immintrin.h>
9 int *p;
10 volatile __m512i x;
11 volatile __mmask16 m;
13 void extern
14 avx512f_test (void)
16 x = _mm512_mask_compress_epi32 (x, m, x);
17 x = _mm512_maskz_compress_epi32 (m, x);
19 _mm512_mask_compressstoreu_epi32 (p, m, x);