PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx-set1-pd-256-1.c
blob21aea294079e75ab5afb92a74dfafe18f7fefc48
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 union256d u;
12 double e [4];
13 double source[1] = {26156.643};
15 u.x = _mm256_set1_pd (source[0]);
17 for (i = 0; i < 4; i++)
18 e[i] = source[0];
20 if (check_union256d (u, e))
21 abort ();