Debian Codegraph @

gcc/testsuite/gcc.target/i386/avx512f-vcvtss2usi-2.c

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