PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512bw-vpshufb-3.c
blob5c215ae4705c9b017384074c554488058d16b783
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -mavx512vl -mavx512bw" } */
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 "vpshufb\[^\n\r]*xmm1\[67]\[^\n\r]*xmm1\[67]\[^\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 "vpshufb\[^\n\r]*ymm1\[67]\[^\n\r]*ymm1\[67]\[^\n\r]*ymm1\[67]" } } */