Initial support for AVX-512{VL,BW,DQ}
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512vl-vcvtps2dq-1.c
bloba38521402b5144cede6471de4bc344d0546005d6
1 /* { dg-do compile } */
2 /* { dg-options "-mavx512vl -O2" } */
3 /* { dg-final { scan-assembler-times "vcvtps2dq\[ \\t\]+\[^\n\]*%ymm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
4 /* { dg-final { scan-assembler-times "vcvtps2dq\[ \\t\]+\[^\n\]*%ymm\[0-9\]\{%k\[1-7\]\}\{z\}" 1 } } */
5 /* { dg-final { scan-assembler-times "vcvtps2dq\[ \\t\]+\[^\n\]*%xmm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
6 /* { dg-final { scan-assembler-times "vcvtps2dq\[ \\t\]+\[^\n\]*%xmm\[0-9\]\{%k\[1-7\]\}\{z\}" 1 } } */
8 #include <immintrin.h>
10 volatile __m256 x1;
11 volatile __m128 x2;
12 volatile __m256i z1;
13 volatile __m128i z2;
14 volatile __mmask8 m;
16 void extern
17 avx512vl_test (void)
19 z1 = _mm256_mask_cvtps_epi32 (z1, m, x1);
20 z1 = _mm256_maskz_cvtps_epi32 (m, x1);
21 z2 = _mm_mask_cvtps_epi32 (z2, m, x2);
22 z2 = _mm_maskz_cvtps_epi32 (m, x2);