2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / avx512f-vcvttsd2usi64-2.c
blob872979d37b70a5c66c09768bfcad7f290cb93683
1 /* { dg-do run { target { ! ia32 } } } */
2 /* { dg-options "-O2 -mavx512f" } */
3 /* { dg-require-effective-target avx512f } */
5 #include "avx512f-check.h"
7 static unsigned long long
8 __attribute__((noinline, unused))
9 test (union128d s1)
11 return _mm_cvttsd_u64 (s1.x);
14 void static
15 avx512f_test (void)
17 union128d s1;
18 unsigned long long d;
19 unsigned long long e;
21 s1.x = _mm_set_pd (24.43, 68.346);
22 d = test (s1);
23 e = (unsigned long long)s1.a[0];
25 if (e != d)
26 abort ();