PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vcvttsd2si-2.c
blob6584fc860a2048bf879088b8f011b04cb5b08fda
1 /* { dg-do run } */
2 /* { dg-options "-mavx512f -O2" } */
3 /* { dg-require-effective-target avx512f } */
5 #include "avx512f-check.h"
6 #include "avx512f-mask-type.h"
8 static int
9 __attribute__ ((noinline, unused))
10 test (__m128d x)
12 return _mm_cvttsd_i32 (x);
15 static void
16 avx512f_test (void)
18 union128d s1;
19 int res, res_ref;
21 s1.x = _mm_set_pd (123.321, 456.987);
22 res = test (s1.x);
23 res_ref = (int) s1.a[0];
25 if (res != res_ref)
26 abort ();