Developer Guide and Reference

Contents

Intrinsics for Blend Operations

The prototypes for Intel® Advanced Vector Extensions 512 (Intel® AVX-512) intrinsics are located in the
zmmintrin.h
header file.
To use these intrinsics, include the
immintrin.h
file as follows:
#include <immintrin.h>
The opmask register is not used as a writemask for these instructions. Instead, the mask is used as an element selector: every element of the destination is conditionally selected between first source or second source using the value of the related mask bit ('
0
' for the first source operand, '
1
' for the second source operand), the elements with corresponding mask bit value of '
0
' in the destination operand are zeroed.
Intrinsic Name
Operation
Corresponding
Intel® AVX-512 Instruction
_mm512_mask_blend_pd
Blend float64 vector elements using instruction mask.
VBLENDMPD
_mm512_mask_blend_ps
Blend float32 vector elements using instruction mask.
VBLENDMPS
_mm512_mask_blend_epi32
Blend int32 vectors using instruction mask.
VPBLENDMD
_mm512_mask_blend_epi64
Blend int64 vectors using instruction mask.