PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vcvttss2usi-2.c
blob4d19104776b7f14e777dc00e299a090772c7366e
1 /* { dg-do run } */
2 /* { dg-options "-O2 -mavx512f" } */
3 /* { dg-require-effective-target avx512f } */
5 #include "avx512f-check.h"
7 static unsigned int
8 __attribute__((noinline, unused))
9 test (union128 s1)
11 return _mm_cvttss_u32 (s1.x);
14 void static
15 avx512f_test (void)
17 union128 s1;
18 unsigned int d;
19 unsigned int e;
21 s1.x = _mm_set_ps (24.43, 68.346, 45.12, 90.97);
22 d = test (s1);
23 e = (unsigned int)s1.a[0];
25 if (e != d)
26 abort ();