1  /* { dg-do run } */
       2  /* { dg-require-effective-target avx } */
       3  /* { dg-options "-O2 -mavx" } */
       4  
       5  #include "avx-check.h"
       6  
       7  void static
       8  avx_test (void)
       9  {
      10    int i;
      11    union256 u, s1;
      12    float e[8];
      13  
      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);
      16  
      17    for (i = 0; i < 4; i++)
      18      e[2*i] = e[2*i+1] = s1.a[2*i+1];
      19  
      20    if (check_union256 (u, e))
      21      abort ();
      22  }