PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512vl-vgetmantpd-1.c
blob9bb6e888e764a14ab6328ad180fa0321a1abfdbd
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx512vl" } */
3 /* { dg-final { scan-assembler-times "vgetmantpd\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vgetmantpd\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vgetmantpd\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
6 /* { dg-final { scan-assembler-times "vgetmantpd\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
7 /* { dg-final { scan-assembler-times "vgetmantpd\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
8 /* { dg-final { scan-assembler-times "vgetmantpd\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
10 #include <immintrin.h>
12 volatile __m256d x, y;
13 volatile __m128d a, b;
14 volatile __mmask8 m;
16 void extern
17 avx512vl_test (void)
19 x = _mm256_getmant_pd (y, _MM_MANT_NORM_p75_1p5, _MM_MANT_SIGN_src);
20 x = _mm256_mask_getmant_pd (x, m, y, _MM_MANT_NORM_p75_1p5,
21 _MM_MANT_SIGN_src);
22 x = _mm256_maskz_getmant_pd (m, y, _MM_MANT_NORM_p75_1p5,
23 _MM_MANT_SIGN_src);
24 a = _mm_getmant_pd (b, _MM_MANT_NORM_p75_1p5, _MM_MANT_SIGN_src);
25 a = _mm_mask_getmant_pd (a, m, b, _MM_MANT_NORM_p75_1p5,
26 _MM_MANT_SIGN_src);
27 a = _mm_maskz_getmant_pd (m, b, _MM_MANT_NORM_p75_1p5,
28 _MM_MANT_SIGN_src);