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

#include <immintrin.h>

__m128 x;
__m256 y;

void extern
avx2_test (void)
{
  y = _mm256_broadcastss_ps (x);
}