10#error "Never use <avx512bf16intrin.h> directly; include <immintrin.h> instead."
15#ifndef __AVX512BF16INTRIN_H
16#define __AVX512BF16INTRIN_H
18typedef __bf16 __v32bf
__attribute__((__vector_size__(64), __aligned__(64)));
19typedef __bf16 __m512bh
__attribute__((__vector_size__(64), __aligned__(64)));
20typedef __bf16 __bfloat16
__attribute__((deprecated(
"use __bf16 instead")));
22#define __DEFAULT_FN_ATTRS512 \
23 __attribute__((__always_inline__, __nodebug__, __target__("avx512bf16,evex512"), \
24 __min_vector_width__(512)))
25#define __DEFAULT_FN_ATTRS \
26 __attribute__((__always_inline__, __nodebug__, \
27 __target__("avx512bf16,no-evex512")))
40 return __builtin_ia32_cvtsbf162ss_32(__A);
56_mm512_cvtne2ps_pbh(__m512 __A, __m512 __B) {
57 return (__m512bh)__builtin_ia32_cvtne2ps2bf16_512((__v16sf) __A,
79_mm512_mask_cvtne2ps_pbh(__m512bh __W,
__mmask32 __U, __m512 __A, __m512 __B) {
80 return (__m512bh)__builtin_ia32_selectpbf_512((
__mmask32)__U,
81 (__v32bf)_mm512_cvtne2ps_pbh(__A, __B),
101_mm512_maskz_cvtne2ps_pbh(
__mmask32 __U, __m512 __A, __m512 __B) {
102 return (__m512bh)__builtin_ia32_selectpbf_512((
__mmask32)__U,
103 (__v32bf)_mm512_cvtne2ps_pbh(__A, __B),
117_mm512_cvtneps_pbh(__m512 __A) {
118 return (__m256bh)__builtin_ia32_cvtneps2bf16_512_mask((__v16sf)__A,
138_mm512_mask_cvtneps_pbh(__m256bh __W,
__mmask16 __U, __m512 __A) {
139 return (__m256bh)__builtin_ia32_cvtneps2bf16_512_mask((__v16sf)__A,
157_mm512_maskz_cvtneps_pbh(
__mmask16 __U, __m512 __A) {
158 return (__m256bh)__builtin_ia32_cvtneps2bf16_512_mask((__v16sf)__A,
178_mm512_dpbf16_ps(__m512
__D, __m512bh __A, __m512bh __B) {
179 return (__m512)__builtin_ia32_dpbf16ps_512((__v16sf)
__D,
202_mm512_mask_dpbf16_ps(__m512
__D,
__mmask16 __U, __m512bh __A, __m512bh __B) {
203 return (__m512)__builtin_ia32_selectps_512((
__mmask16)__U,
204 (__v16sf)_mm512_dpbf16_ps(
__D, __A, __B),
226_mm512_maskz_dpbf16_ps(
__mmask16 __U, __m512
__D, __m512bh __A, __m512bh __B) {
227 return (__m512)__builtin_ia32_selectps_512((
__mmask16)__U,
228 (__v16sf)_mm512_dpbf16_ps(
__D, __A, __B),
255_mm512_maskz_cvtpbh_ps(
__mmask16 __U, __m256bh __A) {
273_mm512_mask_cvtpbh_ps(__m512 __S,
__mmask16 __U, __m256bh __A) {
279#undef __DEFAULT_FN_ATTRS
280#undef __DEFAULT_FN_ATTRS512
_Float16 __2f16 __attribute__((ext_vector_type(2)))
Zeroes the upper 128 bits (bits 255:128) of all YMM registers.
#define __DEFAULT_FN_ATTRS
#define __DEFAULT_FN_ATTRS512
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__ void short __D