1 /* { dg-do run { target { ! ia32 } } } */ 2 /* { dg-options "-O2 -mavx512f" } */ 3 /* { dg-require-effective-target avx512f } */ 4 5 #include "avx512f-check.h" 6 7 void static avx512f_test(void)8avx512f_test (void) 9 { 10 union128d s1; 11 unsigned long long d; 12 unsigned long long e; 13 14 s1.x = _mm_set_pd (24.43, 68.346); 15 d = _mm_cvtsd_u64 (s1.x); 16 e = (unsigned long long)(s1.a[0] + 0.5); 17 18 if (e != d) 19 abort (); 20 } 21