2014-04-15 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vexpandps-1.c
blobb0a36c300dc7eda2c59eaa3fa6b0b37746b54362
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -O2" } */
3 /* { dg-final { scan-assembler-times "vexpandps\[ \\t\]+\[^\n\]*%zmm\[0-9\]" 4 } } */
4 /* { dg-final { scan-assembler-times "vexpandps\[ \\t\]+\[^\n\]*%zmm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 2 } } */
5 /* { dg-final { scan-assembler-times "vexpandps\[ \\t\]+\[^\n\]*%zmm\[0-9\]\{%k\[1-7\]\}\{z\}" 2 } } */
7 #include <immintrin.h>
9 float *p;
10 volatile __m512 x;
11 volatile __mmask16 m;
13 void extern
14 avx512f_test (void)
16 x = _mm512_mask_expand_ps (x, m, x);
17 x = _mm512_maskz_expand_ps (m, x);
19 x = _mm512_mask_expandloadu_ps (x, m, p);
20 x = _mm512_maskz_expandloadu_ps (m, p);