1  /* { dg-do run { target { ! ia32 } } } */
       2  /* { dg-options "-mavx512f -O2" } */
       3  /* { dg-require-effective-target avx512f } */
       4  
       5  #include "avx512f-check.h"
       6  #include "avx512f-mask-type.h"
       7  #include "avx512f-helper.h"
       8  
       9  static int
      10  __attribute__ ((noinline, unused))
      11  test (__m128d x)
      12  {
      13    return _mm_cvttsd_i64 (x);
      14  }
      15  
      16  static void
      17  avx512f_test (void)
      18  {
      19    union128d s1;
      20    long long res, res_ref;
      21  
      22    s1.x = _mm_set_pd (123.321, 456.987);
      23    res = test (s1.x);
      24    res_ref = (long long) s1.a[0];
      25  
      26    if (res != res_ref)
      27      abort ();
      28  }