| 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\}(?:\n|\[ \\t\]+#)" 1 } } */ |
| 4 |
/* { dg-final { scan-assembler-times "vcvtpd2psy\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */ |
| 5 |
/* { dg-final { scan-assembler-times "vcvtpd2psx\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ |
| 6 |
/* { dg-final { scan-assembler-times "vcvtpd2psx\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ |
| 7 |
|
| 8 |
#include <immintrin.h> |
| 9 |
|
| 10 |
volatile __m256d x; |
| 11 |
volatile __m128d xx; |
| 12 |
volatile __m128 y; |
| 13 |
|
| 14 |
void extern |
| 15 |
avx512vl_test (void) |
| 16 |
{ |
| 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); |
| 21 |
} |
| 22 |
|