PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vpcompressw-1.c
blob2da92a4758bc45ec8025185ecf1e4b80e8c2f57b
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -mavx512vbmi2 -mavx512bw -O2" } */
3 /* { dg-final { scan-assembler-times "vpcompressw\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vpcompressw\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vpcompressw\[ \\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 __mmask32 m;
13 void extern
14 avx512f_test (void)
16 x = _mm512_mask_compress_epi16 (x, m, x);
17 x = _mm512_maskz_compress_epi16 (m, x);
19 _mm512_mask_compressstoreu_epi16 (p, m, x);