2 /* { dg-options "-O2 -mavx512f" } */
3 /* { dg-require-effective-target avx512f } */
7 #include "avx512f-helper.h"
9 #define SIZE (AVX512F_LEN / 32)
10 #include "avx512f-mask-type.h"
15 UNION_TYPE (AVX512F_LEN
,) val
;
16 UNION_TYPE (AVX512F_LEN_HALF
, i_w
) res1
,res2
,res3
;
17 MASK_TYPE mask
= MASK_VALUE
;
18 #if AVX512F_LEN == 128
25 for (i
= 0; i
< SIZE
; i
++)
27 res1
.a
[i
] = DEFAULT_VALUE
;
28 res2
.a
[i
] = DEFAULT_VALUE
;
29 res3
.a
[i
] = DEFAULT_VALUE
;
79 res1
.x
= INTRINSIC (_cvtps_ph (val
.x
, 0));
80 res2
.x
= INTRINSIC (_mask_cvtps_ph (res2
.x
, mask
, val
.x
, 0));
81 res3
.x
= INTRINSIC (_maskz_cvtps_ph (mask
, val
.x
, 0));
83 if (UNION_CHECK (AVX512F_LEN_HALF
, i_w
) (res1
, exp
))
86 MASK_MERGE (i_w
) (exp
, mask
, SIZE
);
87 if (UNION_CHECK (AVX512F_LEN_HALF
, i_w
) (res2
, exp
))
90 MASK_ZERO (i_w
) (exp
, mask
, SIZE
);
91 if (UNION_CHECK (AVX512F_LEN_HALF
, i_w
) (res3
, exp
))