Stop only if there aren't any usable algorithms
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512vl-vcvtpd2ps-1.c
blobb18582b0a6f2f486b0cddfc707e4f61a6ff5bb28
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx512vl" } */
3 /* { dg-final { scan-assembler-times "vcvtpd2psy\[ \\t\]+\[^\n\]*%xmm\[0-9\]\{%k\[1-7\]\}\{z\}" 1 } } */
4 /* { dg-final { scan-assembler-times "vcvtpd2psy\[ \\t\]+\[^\n\]*%xmm\[0-9\]\{%k\[1-7\]\}\{z\}" 1 } } */
5 /* { dg-final { scan-assembler-times "vcvtpd2psx\[ \\t\]+\[^\n\]*%xmm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
6 /* { dg-final { scan-assembler-times "vcvtpd2psx\[ \\t\]+\[^\n\]*%xmm\[0-9\]\{%k\[1-7\]\}\[^\{\]" 1 } } */
8 #include <immintrin.h>
10 volatile __m256d x;
11 volatile __m128d xx;
12 volatile __m128 y;
14 void extern
15 avx512vl_test (void)
17 y = _mm256_mask_cvtpd_ps (y, 4, x);
18 y = _mm256_maskz_cvtpd_ps (6, x);
19 y = _mm_mask_cvtpd_ps (y, 4, xx);
20 y = _mm_maskz_cvtpd_ps (6, xx);