Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vcompresspd-1.c
blob3f2cdff9c14d8dcad8905753c76210df0094faf0
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -O2" } */
3 /* { dg-final { scan-assembler-times "vcompresspd\[ \\t\]+\[^\n\]*%zmm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
4 /* { dg-final { scan-assembler-times "vcompresspd\[ \\t\]+\[^\n\]*%zmm\[0-9\]\{%k\[1-7\]\}\{z\}" 1 } } */
5 /* { dg-final { scan-assembler-times "vcompresspd\[ \\t\]+\[^\n\]*%zmm\[0-9\]\[^\n\]*\\)\{%k\[1-7\]\}\[^\{\]" 1 } } */
7 #include <immintrin.h>
9 double *p;
10 volatile __m512d x;
11 volatile __mmask8 m;
13 void extern
14 avx512f_test (void)
16 x = _mm512_mask_compress_pd (x, m, x);
17 x = _mm512_maskz_compress_pd (m, x);
19 _mm512_mask_compressstoreu_pd (p, m, x);