PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512vl-vpmovsxdq-1.c
blobd2670a3010d990285899bd62244a0d0eb72263ee
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vpmovsxdq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vpmovsxdq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vpmovsxdq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
6 /* { dg-final { scan-assembler-times "vpmovsxdq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\[^\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
8 #include <immintrin.h>
10 volatile __m128i s, res2;
11 volatile __m256i res1;
12 volatile __mmask8 m;
14 void extern
15 avx512vl_test (void)
17 res1 = _mm256_mask_cvtepi32_epi64 (res1, m, s);
18 res2 = _mm_mask_cvtepi32_epi64 (res2, m, s);
20 res1 = _mm256_maskz_cvtepi32_epi64 (m, s);
21 res2 = _mm_maskz_cvtepi32_epi64 (m, s);