summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx2-vpbroadcastb128-1.c
blob: 14b9a7c09503a3f5ae9de66860c266a7d14c6b0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-mavx2 -O2" } */
/* { dg-final { scan-assembler "vpbroadcastb\[ \\t\]+\[^\n\]*%xmm\[0-9\]" } } */

#include <immintrin.h>

__m128i x;

void extern
avx2_test (void)
{
  x = _mm_broadcastb_epi8 (x);
}