aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/avx-vbroadcastss-2.c
blob: 56723cb282ec21c1429ef7825c4e1e4fd959c56f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */

#include "avx-check.h"

void static
avx_test (void)
{
  int i;
  float s = 39678.3452;
  union128 u;
  float e [4];

  u.x = _mm_broadcast_ss (&s);

  for (i = 0; i < 4; i++)
    e[i] = s;

  if (check_union128 (u, e))
    abort ();
}