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