* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vcvttss2si64-2.c
blob9e4136a34187e5a6a62944a35d5d0e2ac8af75c7
1 /* { dg-do run { target { ! ia32 } } } */
2 /* { dg-options "-mavx512f -O2" } */
3 /* { dg-require-effective-target avx512f } */
5 #include "avx512f-check.h"
6 #include "avx512f-mask-type.h"
7 #include "avx512f-helper.h"
9 static int
10 __attribute__ ((noinline, unused))
11 test (__m128 x)
13 return _mm_cvttss_i64 (x);
16 static void
17 avx512f_test (void)
19 union128 s1;
20 long long res, res_ref;
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];
26 if (res != res_ref)
27 abort ();