(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
avx-vbroadcastsd-1.c
       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    double s = 39678;
      12    union256d u;
      13    double e [4];
      14  
      15    u.x = _mm256_broadcast_sd (&s);
      16  
      17    for (i = 0; i < 4; i++)
      18      e[i] = s;
      19  
      20    if (check_union256d (u, e))
      21      abort ();
      22  }