1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx512vl" } */
3 /* { dg-final { scan-assembler-times "valignq\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+(?:\n|\[ \\t\]+#)"  1 } } */
4 /* { dg-final { scan-assembler-times "valignq\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
5 /* { dg-final { scan-assembler-times "valignq\[ \\t\]+\[^\{\n\]*%ymm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
6 /* { dg-final { scan-assembler-times "valignq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+(?:\n|\[ \\t\]+#)"  1 } } */
7 /* { dg-final { scan-assembler-times "valignq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}(?:\n|\[ \\t\]+#)" 1 } } */
8 /* { dg-final { scan-assembler-times "valignq\[ \\t\]+\[^\{\n\]*%xmm\[0-9\]+\{%k\[1-7\]\}\{z\}(?:\n|\[ \\t\]+#)" 1 } } */
9 
10 #include <immintrin.h>
11 
12 volatile __m256i y;
13 volatile __m128i x;
14 volatile __mmask8 m;
15 
16 void extern
avx512vl_test(void)17 avx512vl_test (void)
18 {
19   y = _mm256_alignr_epi64 (y, y, 3);
20   y = _mm256_mask_alignr_epi64 (y, m, y, y, 3);
21   y = _mm256_maskz_alignr_epi64 (m, y, y, 3);
22 
23   x = _mm_alignr_epi64 (x, x, 1);
24   x = _mm_mask_alignr_epi64 (x, m, x, x, 1);
25   x = _mm_maskz_alignr_epi64 (m, x, x, 1);
26 }
27