Merge from mainline (165734:167278).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / avx-vbroadcastss-1.c
blobd6bf2ce61c6c3f24232964bd0b1fd138548db351
1 /* { dg-do run } */
2 /* { dg-require-effective-target avx } */
3 /* { dg-options "-O2 -mavx" } */
5 #include "avx-check.h"
7 void static
8 avx_test (void)
10 int i;
11 float s = 39678.3452;
12 union256 u;
13 float e [8];
15 u.x = _mm256_broadcast_ss (&s);
17 for (i = 0; i < 8; i++)
18 e[i] = s;
20 if (check_union256 (u, e))
21 abort ();