Extensions
Forms
4 (4 VEX)
Data
Intel XED v2026.08.23

VBLENDPS picks each single of its result from one of two sources by a constant: bit i of the immediate set takes element i from the third operand, clear from the second. It is the VEX form of BLENDPS, with a separate destination and a 256-bit form that uses all eight bits of the immediate. The cases recorded on Zen 5 show both widths:

  • vblendps ymm1, ymm2, ymm3, 0x96 took elements 1, 2, 4 and 7 from ymm3 and the rest from ymm2;
  • vblendps xmm0, xmm13, xmmword ptr [mem], 0xEA took elements 1 and 3 from memory: the 128-bit form reads only bits 3:0 of the immediate, and it cleared bits 128 and up of the destination.

Where the choice is made at run time, by a mask in a vector, the instruction is VBLENDVPS; there is no EVEX form of either, so code for AVX-512 selects under a mask register with VBLENDMPS.

A blend is often a shuffle

A shuffle of two vectors that leaves every element in its place is a blend. GCC 14 and Clang 23 at -O2 with -march=x86-64-v3 compile __builtin_shufflevector(a, b, 0, 9, 2, 11, 4, 13, 6, 15) on eight floats to one VBLENDPS (GCC writes it with the sources swapped and the immediate inverted, 85 against Clang’s 170). Setting element 0 of a vector, a[0] = x, is vblendps ymm0, ymm0, ymm1, 1 in Clang, while GCC uses VMOVSS and VINSERTF128.

Intel’s optimization manual turns the same fact to account: in the Sandy Bridge microarchitecture the shuffles run only on port 5 and the blends also on port 0, and its 8x8 transpose of singles replaces eight of twelve VSHUFPS with VBLENDPS to relieve port 5 (Section 15.11.1). AMD’s Zen 5 guide lists VBLENDPS with a latency of 1 cycle on all four vector pipes, against two pipes for VBLENDVPS.

In the optimization guide

What the optimization guide says about VBLENDPS, a line per claim. Each links to the claim in the guide, with its sources and where they differ.

Vectors

  • Shuffles and lane crossing: Intel’s shuffles share one port, so blends and shuffles done by loads relieve it; Ice Lake and Golden Cove add a second, in-lane one.

Forms

Every encoding of VBLENDPS that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
VBLENDPS xmm, xmm, m128, imm8 VBLENDPS_XMMdq_XMMdq_MEMdq_IMMbVEX.128.66.0F3A.WIG 0C /r ibAVX
VBLENDPS xmm, xmm, xmm, imm8 VBLENDPS_XMMdq_XMMdq_XMMdq_IMMbVEX.128.66.0F3A.WIG 0C /r ibAVX
VBLENDPS ymm, ymm, m256, imm8 VBLENDPS_YMMqq_YMMqq_MEMqq_IMMbVEX.256.66.0F3A.WIG 0C /r ibAVX
VBLENDPS ymm, ymm, ymm, imm8 VBLENDPS_YMMqq_YMMqq_YMMqq_IMMbVEX.256.66.0F3A.WIG 0C /r ibAVX

Data flow

Where the elements of the sources go, element 0 on the right; results that depend on a control value are drawn for an example. How to read.

Blend by immediate: each single comes from xmm3 where its bit of imm8 is 1, else from xmm2.
VBLENDPS with an example selectorResult singles 3 to 0: a3, b2, a1, b0.1010imm80x050213xmm2ab0b2a1a3xmm10213xmm3or m128b

Example: imm8 = 0x05 (0000 0101 in binary). The wider forms go on with the next bits of imm8 for the higher elements.

Result singles 3 to 0: a3, b2, a1, b0.

Operation

What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.

for i in range(VL // 32):
    if imm8 >> i & 1:
        ymm1.d[i] = src3.d[i]
    else:
        ymm1.d[i] = ymm2.d[i]
# ymm1 is zeroed from bit VL up

Run on AMD Zen 5 (EPYC 9645): 4 cases.

Operands

What each form reads and writes, as Intel XED records it: the operands of its syntax, in order, and the implicit ones that the syntax does not name. How to read.
OperandKindAction
VBLENDPS xmm, xmm, xmm/m128, imm8 VBLENDPS ymm, ymm, ymm/m256, imm8
xmm, ymmexplicitwrite
xmm, ymmexplicitread
xmm/m128, ymm/m256explicitread
imm8explicitread

Flags

None: XED records no flag that the forms test or change.

Exceptions

The exception class is XED's name for the set of exception conditions that a form follows. How to read.

All forms
avx-type-4

Intrinsics

The C intrinsics of Clang 23.1.2 that compile to VBLENDPS, 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.

IntrinsicCompiles to
_mm_blend_ps __m128 _mm_blend_ps(__m128 V1, __m128 V2, const int M)

VBLENDPS xmm, xmm, xmm, imm8 VEX.128 -mavxwith AVX enabled

_mm_move_ss __m128 _mm_move_ss(__m128 __a, __m128 __b)

VBLENDPS xmm, xmm, xmm, imm8 VEX.128 -mavxwith AVX enabled

_mm256_blend_ps __m256 _mm256_blend_ps(__m256 V1, __m256 V2, const int M)

VBLENDPS ymm, ymm, ymm, imm8 VEX.256 -mavx

_mm256_shuffle_f32x4 __m256 _mm256_shuffle_f32x4(__m256 A, __m256 B, const int imm)

VBLENDPS ymm, ymm, ymm, imm8 VEX.256 -mavx512vl

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.

CPUID requirements and processors of the XED ISA sets above. Alternatives are separated by “or”; processors follow XED’s chip model, whose AMD processors end with Zen 2, and the CPU data of this site for Zen 3 to Zen 6.

More AVX instructions

All 253 AVX instructions

Sources

  1. Intel XED v2026.08.23 (commit 0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model.
  2. The CPU data of x86-64.net: Zen 3 to Zen 6, from GCC’s -march feature sets and AMD’s Processor Programming References, which the page of each processor cites.
  3. 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.
  4. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2A, page 3-80 (BLENDPS)
  5. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
  6. Intel 64 and IA-32 Architectures Optimization Reference Manual, Volume 1 (248966-051, October 2026)
  7. Software Optimization Guide for the AMD Zen5 Microarchitecture (58455, rev. 1.00, August 2024), Wayback Machine copy of AMD's ZIP

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.