* g++.dg/other/i386-2.C (dg-options): Add -mavx512pf.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vexpandpd-1.c
blobb7648c6d027a4657a607ade07dba381e4b439e04
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -O2" } */
3 /* { dg-final { scan-assembler-times "vexpandpd\[ \\t\]+\[^\n\]*%zmm\[0-9\]" 4 } } */
4 /* { dg-final { scan-assembler-times "vexpandpd\[ \\t\]+\[^\n\]*%zmm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 2 } } */
5 /* { dg-final { scan-assembler-times "vexpandpd\[ \\t\]+\[^\n\]*%zmm\[0-9\]\{%k\[1-7\]\}\{z\}" 2 } } */
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_expand_pd (x, m, x);
17 x = _mm512_maskz_expand_pd (m, x);
19 x = _mm512_mask_expandloadu_pd (x, m, p);
20 x = _mm512_maskz_expandloadu_pd (m, p);