PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512vl-vpshufb-3.c
blobffdfad5cb1c506a779dc6ab3d991c53efd87013a
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -mavx512vl -mno-avx512bw" } */
4 #include <x86intrin.h>
6 void
7 f1 (__m128i x, __m128i y)
9 register __m128i a __asm ("xmm16"), b __asm ("xmm17");
10 a = x;
11 b = y;
12 asm volatile ("" : "+v" (a), "+v" (b));
13 a = _mm_shuffle_epi8 (a, b);
14 asm volatile ("" : "+v" (a));
17 /* { dg-final { scan-assembler-not "vpshufb\[^\n\r]*xmm1\[67]" } } */
19 void
20 f2 (__m256i x, __m256i y)
22 register __m256i a __asm ("xmm16"), b __asm ("xmm17");
23 a = x;
24 b = y;
25 asm volatile ("" : "+v" (a), "+v" (b));
26 a = _mm256_shuffle_epi8 (a, b);
27 asm volatile ("" : "+v" (a));
30 /* { dg-final { scan-assembler-not "vpshufb\[^\n\r]*ymm1\[67]" } } */