Instruction
VPDPBUSD
Multiplies unsigned bytes of the first source by signed bytes of the second and adds each group of four products to a 32-bit accumulator.
VPDPBUSD is the core of quantized neural-network inference on x86. In each 32-bit element it multiplies four unsigned bytes of the first source by the four signed bytes at the same positions of the second, and adds the four products to the element of the destination. Without it the same step takes three instructions (VPMADDUBSW, VPMADDWD with a vector of ones, and VPADDD), and the first of them saturates its 16-bit pair sums, which VPDPBUSD never does. The sum into the accumulator wraps on overflow; VPDPBUSDS saturates it instead.
The instruction exists in two encodings with the same opcode:
- EVEX (AVX512_VNNI, now part of AVX10.1): 128-, 256- and 512-bit vectors, masking, embedded broadcast and 32 registers.
- VEX (AVX-VNNI): 128- and 256-bit only, without masking, for
processors without AVX-512 such as
Alder Lake. Intel’s intrinsics name the
VEX forms separately, for example
_mm256_dpbusd_avx_epi32.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
VPDPBUSD xmm, xmm, xmm
VPDPBUSD_XMMi32_XMMu32_XMMu32 | VEX.128.66.0F38.W0 50 /r | AVX_VNNI |
VPDPBUSD xmm, xmm, m128
VPDPBUSD_XMMi32_XMMu32_MEMu32 | VEX.128.66.0F38.W0 50 /r | AVX_VNNI |
VPDPBUSD ymm, ymm, ymm
VPDPBUSD_YMMi32_YMMu32_YMMu32 | VEX.256.66.0F38.W0 50 /r | AVX_VNNI |
VPDPBUSD ymm, ymm, m256
VPDPBUSD_YMMi32_YMMu32_MEMu32 | VEX.256.66.0F38.W0 50 /r | AVX_VNNI |
VPDPBUSD xmm {k}{z}, xmm, xmm
VPDPBUSD_XMMi32_MASKmskw_XMMu8_XMMu32_AVX512 | EVEX.128.66.0F38.W0 50 /r | AVX10.1 or AVX512_VNNI + AVX512VL |
VPDPBUSD xmm {k}{z}, xmm, m128/m32bcst
VPDPBUSD_XMMi32_MASKmskw_XMMu8_MEMu32_AVX512 | EVEX.128.66.0F38.W0 50 /r | AVX10.1 or AVX512_VNNI + AVX512VL |
VPDPBUSD ymm {k}{z}, ymm, ymm
VPDPBUSD_YMMi32_MASKmskw_YMMu8_YMMu32_AVX512 | EVEX.256.66.0F38.W0 50 /r | AVX10.1 or AVX512_VNNI + AVX512VL |
VPDPBUSD ymm {k}{z}, ymm, m256/m32bcst
VPDPBUSD_YMMi32_MASKmskw_YMMu8_MEMu32_AVX512 | EVEX.256.66.0F38.W0 50 /r | AVX10.1 or AVX512_VNNI + AVX512VL |
VPDPBUSD zmm {k}{z}, zmm, zmm
VPDPBUSD_ZMMi32_MASKmskw_ZMMu8_ZMMu32_AVX512 | EVEX.512.66.0F38.W0 50 /r | AVX10.1 or AVX512_VNNI |
VPDPBUSD zmm {k}{z}, zmm, m512/m32bcst
VPDPBUSD_ZMMi32_MASKmskw_ZMMu8_MEMu32_AVX512 | EVEX.512.66.0F38.W0 50 /r | AVX10.1 or AVX512_VNNI |
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to VPDPBUSD, each with the form it compiles to and the Clang options it needs. The forms come from compiling every intrinsic and decoding the result with Intel XED; all intrinsics A–Z explains the method.
| Intrinsic | Compiles to |
|---|---|
_mm_dpbusd_avx_epi32
__m128i _mm_dpbusd_avx_epi32(__m128i __S, __m128i __A, __m128i __B) |
|
_mm_dpbusd_epi32
__m128i _mm_dpbusd_epi32(__m128i S, __m128i A, __m128i B) |
|
_mm_mask_dpbusd_epi32
__m128i _mm_mask_dpbusd_epi32(__m128i __S, __mmask8 __U, __m128i __A, __m128i __B) |
|
_mm_maskz_dpbusd_epi32
__m128i _mm_maskz_dpbusd_epi32(__mmask8 __U, __m128i __S, __m128i __A, __m128i __B) |
|
_mm256_dpbusd_avx_epi32
__m256i _mm256_dpbusd_avx_epi32(__m256i __S, __m256i __A, __m256i __B) |
|
_mm256_dpbusd_epi32
__m256i _mm256_dpbusd_epi32(__m256i S, __m256i A, __m256i B) |
|
_mm256_mask_dpbusd_epi32
__m256i _mm256_mask_dpbusd_epi32(__m256i __S, __mmask8 __U, __m256i __A, __m256i __B) |
|
_mm256_maskz_dpbusd_epi32
__m256i _mm256_maskz_dpbusd_epi32(__mmask8 __U, __m256i __S, __m256i __A, __m256i __B) |
|
_mm512_dpbusd_epi32
__m512i _mm512_dpbusd_epi32(__m512i __S, __m512i __A, __m512i __B) |
|
_mm512_mask_dpbusd_epi32
__m512i _mm512_mask_dpbusd_epi32(__m512i __S, __mmask16 __U, __m512i __A, __m512i __B) |
|
_mm512_maskz_dpbusd_epi32
__m512i _mm512_maskz_dpbusd_epi32(__mmask16 __U, __m512i __S, __m512i __A, __m512i __B) |
|
CPUID and processors
Each form belongs to an XED ISA set. A form can be used when the processor reports every CPUID bit of one of its ISA set's alternatives.
| ISA set | CPUID | Processors in XED |
|---|---|---|
AVX_VNNI | AVX_VNNI | Alder Lake, Arrow Lake, Panther Lake, Nova Lake, Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Sierra Forest, Clearwater Forest |
AVX512_VNNI_128 | AVX10.1 or AVX512_VNNI + AVX512VL | Ice Lake (client), Tiger Lake, Nova Lake, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids |
AVX512_VNNI_256 | AVX10.1 or AVX512_VNNI + AVX512VL | Ice Lake (client), Tiger Lake, Nova Lake, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids |
AVX512_VNNI_512 | AVX10.1 or AVX512_VNNI | Ice Lake (client), Tiger Lake, Nova Lake, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids |
More AVX-VNNI instructions
More AVX10.1 instructions
- VPCMPEQB
- VPCMPEQD
- VPCMPEQQ
- VPCMPEQW
- VPCMPGTB
- VPCMPGTD
- VPCMPGTQ
- VPCMPGTW
- VPCMPQ
- VPCMPUB
- VPCMPUD
- VPCMPUQ
- VPCMPUW
- VPCMPW
- VPCOMPRESSB
- VPCOMPRESSD
- VPCOMPRESSQ
- VPCOMPRESSW
- VPCONFLICTD
- VPCONFLICTQ
- VPDPBUSDS
- VPDPWSSD
- VPDPWSSDS
- VPERMB
- VPERMD
- VPERMI2B
- VPERMI2D
- VPERMI2PD
- VPERMI2PS
- VPERMI2Q
- VPERMI2W
- VPERMILPD
- VPERMILPS
- VPERMPD
- VPERMPS
- VPERMQ
- VPERMT2B
- VPERMT2D
- VPERMT2PD
- VPERMT2PS
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, ISA sets, CPUID bits and chip model. - Clang's x86 intrinsic headers, LLVM 23.1.2 (commit
85ac56026243): the intrinsics, their signatures and doc comments, and the Clang of that release, which compiled each of them. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-092, June 2026)
- Intel Advanced Vector Extensions 10.2 Architecture Specification, revision 6.0 (361050-006, January 2026)
The tables are derived from Intel XED, Copyright Intel Corporation, licensed under the Apache License 2.0; x86-64.net converted and reformatted them. The intrinsics and their signatures come from Clang, part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.