2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx-vmovshdup-256-1.c
bloba4b57a0c40dcf3782deb38f6feb369104e73a4a6
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 union256 u, s1;
12 float e[8];
14 s1.x = _mm256_set_ps (134.3, 1234.54, 45.335, 646.456, 43.54, 473.34, 78, 89.54);
15 u.x = _mm256_movehdup_ps (s1.x);
17 for (i = 0; i < 4; i++)
18 e[2*i] = e[2*i+1] = s1.a[2*i+1];
20 if (check_union256 (u, e))
21 abort ();