PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512vl-vpsraqi-1.c
blob51f0d61273d8a75ff99e0d4572c6c0397ba2c290
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx512vl" } */
3 /* { dg-final { scan-assembler-times "vpsraq\[ \\t\]+\[^\{\n\]*, %ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vpsraq\[ \\t\]+\[^\{\n\]*, %ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vpsraq\[ \\t\]+\[^\{\n\]*, %ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
6 /* { dg-final { scan-assembler-times "vpsraq\[ \\t\]+\[^\{\n\]*, %xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
7 /* { dg-final { scan-assembler-times "vpsraq\[ \\t\]+\[^\{\n\]*, %xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
8 /* { dg-final { scan-assembler-times "vpsraq\[ \\t\]+\[^\{\n\]*, %xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
10 #include <immintrin.h>
12 volatile __m256i x256;
13 volatile __m128i x128;
14 #define y 7
15 volatile __mmask8 m;
17 void extern
18 avx512vl_test (void)
20 x256 = _mm256_srai_epi64 (x256, y);
21 x256 = _mm256_mask_srai_epi64 (x256, m, x256, y);
22 x256 = _mm256_maskz_srai_epi64 (m, x256, y);
23 x128 = _mm_srai_epi64 (x128, y);
24 x128 = _mm_mask_srai_epi64 (x128, m, x128, y);
25 x128 = _mm_maskz_srai_epi64 (m, x128, y);