/* { dg-do compile } */ /* { dg-options "-mavx512bw -mavx512vl -O2" } */ /* { dg-final { scan-assembler-times "vpunpckhwd\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+(?:\n|\[ \\t\]+#)" 1 } } */ /* { dg-final { scan-assembler-times "vpunpckhwd\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ /* { dg-final { scan-assembler-times "vpunpckhwd\[ \\t\]+\[^\{\n\]*%zmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */ /* { dg-final { scan-assembler-times "vpunpckhwd\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ /* { dg-final { scan-assembler-times "vpunpckhwd\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */ /* { dg-final { scan-assembler-times "vpunpckhwd\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */ /* { dg-final { scan-assembler-times "vpunpckhwd\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */ #include volatile __m512i d, e, f; volatile __m256i x, y, z; volatile __m128i a, b, c; volatile __mmask32 m1; volatile __mmask16 m2; volatile __mmask8 m3; void extern avx512bw_test (void) { d = _mm512_unpackhi_epi16 (e, f); d = _mm512_mask_unpackhi_epi16 (d, m1, e, f); d = _mm512_maskz_unpackhi_epi16 (m1, e, f); x = _mm256_mask_unpackhi_epi16 (x, m2, y, z); x = _mm256_maskz_unpackhi_epi16 (m2, y, z); a = _mm_mask_unpackhi_epi16 (a, m3, b, c); a = _mm_maskz_unpackhi_epi16 (m3, b, c); }