10 #error "Never use <avx512bf16intrin.h> directly; include <immintrin.h> instead."
13 #ifndef __AVX512BF16INTRIN_H
14 #define __AVX512BF16INTRIN_H
16 typedef short __m512bh
__attribute__((__vector_size__(64), __aligned__(64)));
17 typedef short __m256bh
__attribute__((__vector_size__(32), __aligned__(32)));
20 #define __DEFAULT_FN_ATTRS512 \
21 __attribute__((__always_inline__, __nodebug__, __target__("avx512bf16"), \
22 __min_vector_width__(512)))
23 #define __DEFAULT_FN_ATTRS \
24 __attribute__((__always_inline__, __nodebug__, __target__("avx512bf16")))
37 return __builtin_ia32_cvtsbf162ss_32(__A);
54 return (__m512bh)__builtin_ia32_cvtne2ps2bf16_512((__v16sf) __A,
77 return (__m512bh)__builtin_ia32_selectw_512((
__mmask32)__U,
99 return (__m512bh)__builtin_ia32_selectw_512((
__mmask32)__U,
115 return (__m256bh)__builtin_ia32_cvtneps2bf16_512_mask((__v16sf)__A,
136 return (__m256bh)__builtin_ia32_cvtneps2bf16_512_mask((__v16sf)__A,
155 return (__m256bh)__builtin_ia32_cvtneps2bf16_512_mask((__v16sf)__A,
176 return (__m512)__builtin_ia32_dpbf16ps_512((__v16sf)
__D,
200 return (__m512)__builtin_ia32_selectps_512((
__mmask16)__U,
224 return (__m512)__builtin_ia32_selectps_512((
__mmask16)__U,
276 #undef __DEFAULT_FN_ATTRS
277 #undef __DEFAULT_FN_ATTRS512
static __inline__ __m512 __DEFAULT_FN_ATTRS512 _mm512_dpbf16_ps(__m512 __D, __m512bh __A, __m512bh __B)
Dot Product of BF16 Pairs Accumulated into Packed Single Precision.
static __inline__ __m512 __DEFAULT_FN_ATTRS512 _mm512_maskz_dpbf16_ps(__mmask16 __U, __m512 __D, __m512bh __A, __m512bh __B)
Dot Product of BF16 Pairs Accumulated into Packed Single Precision.
static __inline__ __m512 __DEFAULT_FN_ATTRS512 _mm512_mask_dpbf16_ps(__m512 __D, __mmask16 __U, __m512bh __A, __m512bh __B)
Dot Product of BF16 Pairs Accumulated into Packed Single Precision.
static __inline__ __m256bh __DEFAULT_FN_ATTRS512 _mm512_mask_cvtneps_pbh(__m256bh __W, __mmask16 __U, __m512 __A)
Convert Packed Single Data to Packed BF16 Data.
#define __DEFAULT_FN_ATTRS512
static __inline__ __m512 __DEFAULT_FN_ATTRS512 _mm512_cvtpbh_ps(__m256bh __A)
Convert Packed BF16 Data to Packed float Data.
#define __DEFAULT_FN_ATTRS
static __inline__ __m512 __DEFAULT_FN_ATTRS512 _mm512_mask_cvtpbh_ps(__m512 __S, __mmask16 __U, __m256bh __A)
Convert Packed BF16 Data to Packed float Data using merging mask.
static __inline__ __m512bh __DEFAULT_FN_ATTRS512 _mm512_maskz_cvtne2ps_pbh(__mmask32 __U, __m512 __A, __m512 __B)
Convert Two Packed Single Data to One Packed BF16 Data.
static __inline__ __m512bh __DEFAULT_FN_ATTRS512 _mm512_cvtne2ps_pbh(__m512 __A, __m512 __B)
Convert Two Packed Single Data to One Packed BF16 Data.
static __inline__ __m512 __DEFAULT_FN_ATTRS512 _mm512_maskz_cvtpbh_ps(__mmask16 __U, __m256bh __A)
Convert Packed BF16 Data to Packed float Data using zeroing mask.
static __inline__ __m256bh __DEFAULT_FN_ATTRS512 _mm512_maskz_cvtneps_pbh(__mmask16 __U, __m512 __A)
Convert Packed Single Data to Packed BF16 Data.
unsigned short __bfloat16
static __inline__ __m512bh __DEFAULT_FN_ATTRS512 _mm512_mask_cvtne2ps_pbh(__m512bh __W, __mmask32 __U, __m512 __A, __m512 __B)
Convert Two Packed Single Data to One Packed BF16 Data.
static __inline__ __m256bh __DEFAULT_FN_ATTRS512 _mm512_cvtneps_pbh(__m512 __A)
Convert Packed Single Data to Packed BF16 Data.
static __inline__ float __DEFAULT_FN_ATTRS _mm_cvtsbh_ss(__bfloat16 __A)
Convert One BF16 Data to One Single Float Data.
short __m512bh __attribute__((__vector_size__(64), __aligned__(64)))
static __inline__ __m512i __DEFAULT_FN_ATTRS512 _mm512_maskz_cvtepi16_epi32(__mmask16 __U, __m256i __A)
static __inline __m512 __DEFAULT_FN_ATTRS512 _mm512_castsi512_ps(__m512i __A)
static __inline__ __m512i __DEFAULT_FN_ATTRS512 _mm512_mask_slli_epi32(__m512i __W, __mmask16 __U, __m512i __A, unsigned int __B)
static __inline__ __m512i __DEFAULT_FN_ATTRS512 _mm512_slli_epi32(__m512i __A, unsigned int __B)
static __inline__ __m512i __DEFAULT_FN_ATTRS512 _mm512_cvtepi16_epi32(__m256i __A)
static __inline __m512i __DEFAULT_FN_ATTRS512 _mm512_setzero_si512(void)
static __inline__ __m256i __DEFAULT_FN_ATTRS _mm256_undefined_si256(void)
Create a 256-bit integer vector with undefined values.
static __inline __m256i __DEFAULT_FN_ATTRS _mm256_setzero_si256(void)
Constructs a 256-bit integer vector initialized to zero.
static __inline__ unsigned int unsigned char __D