2 /* { dg-options "-O2 -mavx512dq -DAVX512DQ" } */
3 /* { dg-require-effective-target avx512dq } */
5 #include "avx512f-helper.h"
7 #define SIZE (AVX512F_LEN / 64)
8 #include "avx512f-mask-type.h"
11 CALC (double *src1
, double *src2
, double *dst
)
15 for (i
= 0; i
< SIZE
; i
++)
17 long long tmp
= (*(long long *) &src1
[i
]) | (*(long long *) &src2
[i
]);
18 dst
[i
] = *(double *) &tmp
;
25 UNION_TYPE (AVX512F_LEN
,d
) s1
, s2
, res1
, res2
, res3
;
26 MASK_TYPE mask
= MASK_VALUE
;
30 for (i
= 0; i
< SIZE
; i
++) {
32 s2
.a
[i
] = 43.6 - i
* 4.4;
33 res2
.a
[i
] = DEFAULT_VALUE
;
36 res1
.x
= INTRINSIC (_or_pd
) (s1
.x
, s2
.x
);
37 res2
.x
= INTRINSIC (_mask_or_pd
) (res2
.x
, mask
, s1
.x
, s2
.x
);
38 res3
.x
= INTRINSIC (_maskz_or_pd
) (mask
, s1
.x
, s2
.x
);
40 CALC (s1
.a
, s2
.a
, dst_ref
);
42 if (UNION_CHECK (AVX512F_LEN
,d
) (res1
, dst_ref
))
45 MASK_MERGE (d
) (dst_ref
, mask
, SIZE
);
46 if (UNION_CHECK (AVX512F_LEN
,d
) (res2
, dst_ref
))
49 MASK_ZERO (d
) (dst_ref
, mask
, SIZE
);
50 if (UNION_CHECK (AVX512F_LEN
,d
) (res3
, dst_ref
))