2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512vl-vrsqrt14ps-1.c
blob70a1928987c436f971be35639920fda2d4d1467d
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vrsqrt14ps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vrsqrt14ps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vrsqrt14ps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
6 /* { dg-final { scan-assembler-times "vrsqrt14ps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
7 /* { dg-final { scan-assembler-times "vrsqrt14ps\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
8 /* { dg-final { scan-assembler-times "vrsqrt14ps\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
10 #include <immintrin.h>
12 volatile __m256 x1;
13 volatile __m128 x2;
14 volatile __mmask8 m;
16 void extern
17 avx512vl_test (void)
19 x1 = _mm256_rsqrt14_ps (x1);
20 x1 = _mm256_mask_rsqrt14_ps (x1, m, x1);
21 x1 = _mm256_maskz_rsqrt14_ps (m, x1);
23 x2 = _mm_rsqrt14_ps (x2);
24 x2 = _mm_mask_rsqrt14_ps (x2, m, x2);
25 x2 = _mm_maskz_rsqrt14_ps (m, x2);