| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-mavx512f -mavx512fp16 -mavx512vl -O2" } */ |
| 3 |
/* { dg-final { scan-assembler-times "vfcmulcph\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)" 2 } } */ |
| 4 |
/* { dg-final { scan-assembler-times "vfcmulcph\[ \\t\]+%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}(?:\n|\[ \\t\]+#)" 2 } } */ |
| 5 |
/* { dg-final { scan-assembler-times "vfcmulcph\[ \\t\]+%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\[^\n\r]*%ymm\[0-9\]+\{%k\[0-9\]\}\{z\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 2 } } */ |
| 6 |
/* { dg-final { scan-assembler-times "vfcmulcph\[ \\t\]+%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)" 2 } } */ |
| 7 |
/* { dg-final { scan-assembler-times "vfcmulcph\[ \\t\]+%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+\{%k\[0-9\]\}(?:\n|\[ \\t\]+#)" 2 } } */ |
| 8 |
/* { dg-final { scan-assembler-times "vfcmulcph\[ \\t\]+%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+\[^\n\r]*%xmm\[0-9\]+\{%k\[0-9\]\}\{z\}\[^\n\r]*(?:\n|\[ \\t\]+#)" 2 } } */ |
| 9 |
|
| 10 |
#include <immintrin.h> |
| 11 |
|
| 12 |
volatile __m256h res1; |
| 13 |
volatile __m128h res2; |
| 14 |
volatile __m256h x1, x2, x3; |
| 15 |
volatile __m128h x4, x5, x6; |
| 16 |
volatile __mmask8 m8; |
| 17 |
|
| 18 |
void extern |
| 19 |
avx512f_test (void) |
| 20 |
{ |
| 21 |
res1 = _mm256_fcmul_pch (x1, x2); |
| 22 |
res1 = _mm256_mask_fcmul_pch (res1, m8, x1, x2); |
| 23 |
res1 = _mm256_maskz_fcmul_pch (m8, x1, x2); |
| 24 |
|
| 25 |
res2 = _mm_fcmul_pch (x4, x5); |
| 26 |
res2 = _mm_mask_fcmul_pch (res2, m8, x4, x5); |
| 27 |
res2 = _mm_maskz_fcmul_pch (m8, x4, x5); |
| 28 |
|
| 29 |
res1 = _mm256_cmul_pch (x1, x2); |
| 30 |
res1 = _mm256_mask_cmul_pch (res1, m8, x1, x2); |
| 31 |
res1 = _mm256_maskz_cmul_pch (m8, x1, x2); |
| 32 |
|
| 33 |
res2 = _mm_cmul_pch (x4, x5); |
| 34 |
res2 = _mm_mask_cmul_pch (res2, m8, x4, x5); |
| 35 |
res2 = _mm_maskz_cmul_pch (m8, x4, x5); |
| 36 |
} |