blob: 997e21bb54d70f761ca3ef07c0f83a62f8c36c3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* { dg-do run { target { ! { ia32 } } } } */
/* { dg-options "-mavx512f -O2" } */
/* { dg-require-effective-target avx512f } */
#include "avx512f-check.h"
static void
__attribute__ ((noinline, unused))
compute_vcvtusi2sd (double *s1, unsigned long long s2, double *r)
{
r[0] = (double) s2;
r[1] = s1[1];
}
static void
avx512f_test (void)
{
union128d s1, res;
unsigned long long s2;
double res_ref[4];
s1.x = _mm_set_pd (-24.43, -43.35);
s2 = 0xFEDCBA9876543210;
res.x = _mm_cvtu64_sd (s1.x, s2);
compute_vcvtusi2sd (s1.a, s2, res_ref);
if (check_union128d (res, res_ref))
abort ();
}
|