2 /* { dg-options "-O2 -mavx512f" } */
3 /* { dg-require-effective-target avx512f } */
7 #include "avx512f-helper.h"
9 #define SIZE ((AVX512F_LEN) / 64)
10 #include "avx512f-mask-type.h"
16 } __attribute__ ((packed
)) EVAL(unaligned_array
, AVX512F_LEN
,);
21 UNION_TYPE (AVX512F_LEN
, i_q
) s2
, res1
, res2
;
22 EVAL(unaligned_array
, AVX512F_LEN
,) s1
, res3
;
23 MASK_TYPE mask
= MASK_VALUE
;
26 for (i
= 0; i
< SIZE
; i
++)
28 s1
.a
[i
] = 12345 * (i
+ 2000) * sign
;
29 s2
.a
[i
] = 67890 * (i
+ 2000) * sign
;
30 res1
.a
[i
] = DEFAULT_VALUE
;
31 res3
.a
[i
] = DEFAULT_VALUE
;
35 res1
.x
= INTRINSIC (_mask_loadu_epi64
) (res1
.x
, mask
, s1
.a
);
36 res2
.x
= INTRINSIC (_maskz_loadu_epi64
) (mask
, s1
.a
);
37 INTRINSIC (_mask_storeu_epi64
) (res3
.a
, mask
, s2
.x
);
39 MASK_MERGE (i_q
) (s1
.a
, mask
, SIZE
);
40 if (UNION_CHECK (AVX512F_LEN
, i_q
) (res1
, s1
.a
))
43 MASK_ZERO (i_q
) (s1
.a
, mask
, SIZE
);
44 if (UNION_CHECK (AVX512F_LEN
, i_q
) (res2
, s1
.a
))
47 MASK_MERGE (i_q
) (s2
.a
, mask
, SIZE
);
48 if (UNION_CHECK (AVX512F_LEN
, i_q
) (s2
, res3
.a
))