Debian Codegraph @

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

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