blob: cc4d9b6f255d849b8d92465a03a1e7475761f93f [file] [log] [blame]
/* PR target/82370 */
/* { dg-do compile } */
/* { dg-options "-O2 -mavx512vl -mavx512bw -masm=att" } */
/* { dg-final { scan-assembler-times "vpslldq\[ \t]\+\\\$5, \\(%\[a-z0-9,]*\\), %xmm\[0-9]\+" 1 } } */
/* { dg-final { scan-assembler-times "vpsrldq\[ \t]\+\\\$5, \\(%\[a-z0-9,]*\\), %xmm\[0-9]\+" 1 } } */
/* { dg-final { scan-assembler-times "vpslldq\[ \t]\+\\\$5, \\(%\[a-z0-9,]*\\), %ymm\[0-9]\+" 1 } } */
/* { dg-final { scan-assembler-times "vpsrldq\[ \t]\+\\\$5, \\(%\[a-z0-9,]*\\), %ymm\[0-9]\+" 1 } } */
/* { dg-final { scan-assembler-times "vpslldq\[ \t]\+\\\$5, \\(%\[a-z0-9,]*\\), %zmm\[0-9]\+" 1 } } */
/* { dg-final { scan-assembler-times "vpsrldq\[ \t]\+\\\$5, \\(%\[a-z0-9,]*\\), %zmm\[0-9]\+" 1 } } */
#include <x86intrin.h>
__m512i f1 (__m512i *x) { return _mm512_bslli_epi128 (*x, 5); }
__m512i f2 (__m512i *x) { return _mm512_bsrli_epi128 (*x, 5); }
__m256i f3 (__m256i *x) { return _mm256_bslli_epi128 (*x, 5); }
__m256i f4 (__m256i *x) { return _mm256_bsrli_epi128 (*x, 5); }
__m128i f5 (__m128i *x) { return _mm_bslli_si128 (*x, 5); }
__m128i f6 (__m128i *x) { return _mm_bsrli_si128 (*x, 5); }