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)8 avx512f_test (void)
9 {
10   union128 s1;
11   unsigned long long d;
12   unsigned long long e;
13 
14   s1.x = _mm_set_ps (24.43, 68.346, 12.34, 80.67);
15   d =  _mm_cvtss_u64 (s1.x);
16   e = (unsigned long long)(s1.a[0] + 0.5);
17 
18   if (e != d)
19     abort ();
20 }
21