(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
i386/
avx-vtestps-256-2.c
       1  /* { dg-do run } */
       2  /* { dg-require-effective-target avx } */
       3  /* { dg-options "-O2 -mavx -DNEED_IEEE754_FLOAT" } */
       4  
       5  #include "avx-check.h"
       6  
       7  static void
       8  avx_test ()
       9  {
      10      int i;
      11      union256 source1, source2;
      12  
      13      float s1[8] = {0, -5463, 86456, 0, 1234, 0, 62445, 34352};
      14      float s2[8] = {0, -1223, 0,     0, 0,    1, 0,     0};
      15      int   d[1];
      16      int   e[1];
      17  
      18      source1.x = _mm256_loadu_ps(s1);
      19      source2.x = _mm256_loadu_ps(s2);
      20      d[0] = _mm256_testc_ps(source1.x, source2.x);
      21  
      22      e[0] = 1;
      23      for (i = 0; i < 8; i++) {
      24  	union ieee754_float u1, u2;
      25  	u1.d = s1[i];
      26  	u2.d = s2[i];
      27  	if (!u1.bits.sign && u2.bits.sign)
      28              e[0] = 0;
      29      }
      30  
      31      if (checkVi (d, e, 1))
      32        abort ();
      33  }
      34