PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vpmovqd-1.c
blob78a0630763ffaa2e937ac1b2e8b2c68d73f4a073
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512f -O2" } */
3 /* { dg-final { scan-assembler-times "vpmovqd\[ \\t\]+\[^\{\n\]*(?:\n|\[ \\t\]+#)" 1 } } */
4 /* { dg-final { scan-assembler-times "vpmovqd\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "vpmovqd\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
6 /* { dg-final { scan-assembler-times "vpmovqd\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
8 #include <immintrin.h>
10 volatile __m512i s;
11 volatile __m256i res;
12 volatile __mmask8 m;
14 void extern
15 avx512f_test (void)
17 res = _mm512_cvtepi64_epi32 (s);
18 res = _mm512_mask_cvtepi64_epi32 (res, m, s);
19 res = _mm512_maskz_cvtepi64_epi32 (m, s);
20 _mm512_mask_cvtepi64_storeu_epi32 ((void *) &res, m, s);