1  /* { dg-do run } */
       2  /* { dg-options "-O2 -fno-strict-aliasing -msse2" } */
       3  /* { dg-additional-options "-mno-mmx" { target { ! ia32 } } } */
       4  
       5  #include "sse2-check.h"
       6  
       7  __attribute__((noinline, noclone))
       8  static void
       9  test_setzero (long long *r)
      10  {
      11    *(__m64 *) r = _mm_setzero_si64 ();
      12  }
      13  
      14  /* Routine to manually compute the results */
      15  static void
      16  compute_correct_result (long long *r)
      17  {
      18    *r = 0x0LL;
      19  }
      20  
      21  static void
      22  sse2_test (void)
      23  {
      24    long long r, ck;
      25  
      26    /* Run the MMX tests */
      27    test_setzero (&r);
      28    compute_correct_result (&ck);
      29    if (ck != r)
      30      abort ();
      31  }