Extensions
Forms
10 (4 VEX, 6 EVEX)
Data
Intel XED v2026.08.23

VMOVSHDUP is the VEX and EVEX form of MOVSHDUP: each odd single is copied over the even one below it, giving elements 1, 1, 3, 3 and so on across the register. MOVSHDUP’s page covers its uses, and VMOVSLDUP is the twin for the even singles. The VEX forms need AVX, ymm included; the EVEX forms need AVX-512F (with AVX512VL below 512 bits) or AVX10.1 and add a write mask per single, but no broadcast. There is still only one source, as VEX.vvvv and EVEX.vvvv must be 1111b; what changes is that memory needs no alignment and the register is cleared above the vector length. Since every pair stays where it is, the wider forms need no lanes: the ymm form is the xmm one twice.

Recorded on Zen 5

  • vmovshdup ymm7, ymm11 gave elements 1, 1, 3, 3, 5, 5, 7, 7 of YMM11.
  • vmovshdup zmm7{k6}, zmm12, the low 16 bits of K6 43A4h, wrote elements 2, 5, 7, 8, 9 and 14 (elements 3, 5, 7, 9, 9 and 15 of ZMM12) and kept the other ten.
  • vmovshdup xmm9{k6}{z}, xmmword ptr [mem] kept only element 2, the fourth single from memory, and zeroed the rest.

In compiled code

In our builds at -O2 with -march=x86-64-v3 and -v4, the shuffle __builtin_shufflevector(v, v, 1, 1, 3, 3, 5, 5, 7, 7) on eight floats is vmovshdup ymm0, ymm0 in Clang 23 but vpermilps ymm0, ymm0, 0xf5 in GCC 14, which uses the immediate form of VPERMILPS instead. GCC does the same in a float complex product with -fcx-limited-range, spreading the imaginary parts with F5h before a VFMADDSUB231PS.

AMD’s latency spreadsheet for Zen 5 gives VMOVSHDUP, in its VEX and EVEX rows alike, and that form of VPERMILPS the same figures: one macro-op with a latency of 1 cycle on any of the four vector pipes.

Forms

Every encoding of VMOVSHDUP that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
VMOVSHDUP xmm, m128 VMOVSHDUP_XMMdq_MEMdqVEX.128.F3.0F.WIG 16 /rAVX
VMOVSHDUP xmm, xmm VMOVSHDUP_XMMdq_XMMdqVEX.128.F3.0F.WIG 16 /rAVX
VMOVSHDUP ymm, m256 VMOVSHDUP_YMMqq_MEMqqVEX.256.F3.0F.WIG 16 /rAVX
VMOVSHDUP ymm, ymm VMOVSHDUP_YMMqq_YMMqqVEX.256.F3.0F.WIG 16 /rAVX
VMOVSHDUP zmm {k}{z}, zmm VMOVSHDUP_ZMMf32_MASKmskw_ZMMf32_AVX512EVEX.512.F3.0F.W0 16 /rAVX10.1 or AVX512F
VMOVSHDUP zmm {k}{z}, m512 VMOVSHDUP_ZMMf32_MASKmskw_MEMf32_AVX512EVEX.512.F3.0F.W0 16 /rAVX10.1 or AVX512F
VMOVSHDUP xmm {k}{z}, xmm VMOVSHDUP_XMMf32_MASKmskw_XMMf32_AVX512EVEX.128.F3.0F.W0 16 /rAVX10.1 or AVX512F + AVX512VL
VMOVSHDUP xmm {k}{z}, m128 VMOVSHDUP_XMMf32_MASKmskw_MEMf32_AVX512EVEX.128.F3.0F.W0 16 /rAVX10.1 or AVX512F + AVX512VL
VMOVSHDUP ymm {k}{z}, ymm VMOVSHDUP_YMMf32_MASKmskw_YMMf32_AVX512EVEX.256.F3.0F.W0 16 /rAVX10.1 or AVX512F + AVX512VL
VMOVSHDUP ymm {k}{z}, m256 VMOVSHDUP_YMMf32_MASKmskw_MEMf32_AVX512EVEX.256.F3.0F.W0 16 /rAVX10.1 or AVX512F + AVX512VL

Latency and throughput

What the scheduling models of LLVM 23.1.2 give for each form, not measurements: latency / reciprocal throughput in cycles, the ports under them. A row is a model, or models that agree; a dash, a form that its processors lack. Memory forms: latency from the address, ports without the load and store units. Which processors each model covers.
Modelxmm, m128xmm, xmm
xmm {k}{z}, xmm
ymm {k}{z}, ymm
ymm, m256ymm, ymmzmm {k}{z}, zmmzmm {k}{z}, m512no maskzmm {k}{z}, m512with a mask, zeroingxmm {k}{z}, m128no maskxmm {k}{z}, m128with a mask, zeroingymm {k}{z}, m256no maskymm {k}{z}, m256with a mask, zeroing
Sandy Bridge, Haswell, Skylake6 / 0.5p231 / 1p57 / 0.5p231 / 1p5
Broadwell5 / 0.5p231 / 1p56 / 0.5p231 / 1p5
Skylake-SP6 / 0.5p231 / 1p57 / 0.5p231 / 1p51 / 1p58 / 0.5p0158 / 0.5p0157 / 0.5p0157 / 0.5p0158 / 0.5p0158 / 0.5p015
Ice Lake6 / 0.5p231 / 0.5p157 / 0.5p231 / 0.5p151 / 1p58 / 0.5p0158 / 0.5p0157 / 0.5p0157 / 0.5p0158 / 0.5p0158 / 0.5p015
Alder Lake7 / 0.33p2 p3 p101 / 0.5p158 / 0.33p2 p3 p101 / 0.5p15
Sapphire Rapids7 / 0.33p2 p3 p101 / 0.5p158 / 0.33p2 p3 p101 / 0.5p151 / 1p58 / 0.33p2 p3 p109 / 0.5p057 / 0.33p2 p3 p108 / 0.33p0158 / 0.33p2 p3 p109 / 0.33p015
Lunar Lake6 / 2p20 p21 p221 / 0.5V2 V37 / 2.33p20 p21 p221 / 0.5V2 V3
Piledriver7 / 1.5FPFMA FPU0 FPU12 / 1FPFMA FPU0 FPU17 / 2FPFMA FPU0 FPU12 / 2FPFMA FPU0 FPU1
Zen8 / 0.5FPU1 FPU21 / 0.5FPU1 FPU28 / 1FPU1 FPU21 / 1FPU1 FPU2
Zen 28 / 0.5FPU1 FPU21 / 0.5FPU1 FPU28 / 0.5FPU1 FPU21 / 0.5FPU1 FPU2
Zen 38 / 0.5FP1 FP21 / 0.5FP1 FP28 / 0.5FP1 FP21 / 0.5FP1 FP2
Zen 48 / 0.5FP1 FP21 / 0.5FP1 FP28 / 0.5FP1 FP21 / 0.5FP1 FP21 / 1FP1 FP28 / 1FP1 FP28 / 1FP1 FP28 / 0.5FP1 FP28 / 0.5FP1 FP28 / 0.5FP1 FP28 / 0.5FP1 FP2
Jaguar6 / 1FPA FPM FPU0 FPU11 / 0.5FPA FPM FPU0 FPU16 / 2FPA FPM FPU0 FPU11 / 1FPA FPM FPU0 FPU1

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.

Duplicate: each odd single is copied into the even place below it.
VMOVSHDUPResult singles 3 to 0: a3, unchanged (bit 2 of k1 is 0), a1, a1.0213xmm2or m128a1110k1a1a1a3xmm1

The ymm and zmm forms repeat this in each 128-bit lane. The EVEX forms write under a mask: where its bit is 0, the element keeps its old value, or zeroes it with {z}.

Result singles 3 to 0: a3, unchanged (bit 2 of k1 is 0), a1, a1.

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):
    j = i - i % 2 + 1
    if k1[i]:  # 1 without a write mask
        zmm1.d[i] = src2.d[j]
    elif zeroing:
        zmm1.d[i] = 0
    # else: zmm1.d[i] keeps its value
# zmm1 is zeroed from bit VL up

Run on AMD Zen 5 (EPYC 9645): 10 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
VMOVSHDUP xmm, xmm/m128 VMOVSHDUP ymm, ymm/m256
xmm, ymmexplicitwrite
xmm/m128, ymm/m256explicitread
VMOVSHDUP xmm {k}{z}, xmm/m128 VMOVSHDUP ymm {k}{z}, ymm/m256 VMOVSHDUP zmm {k}{z}, zmm/m512
xmm, ymm, zmmexplicitwrite (masked)
{k}explicitread (write mask)
xmm/m128, ymm/m256, zmm/m512explicitread

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.

VEX forms
avx-type-4
EVEX forms
AVX512-E4NF

Attributes

What else XED records about the forms. How to read.

EVEX forms
write masking

Intrinsics

The C intrinsics of Clang 23.1.2 that compile to VMOVSHDUP, 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_movehdup_ps __m128 _mm_movehdup_ps(__m128 __a)

VMOVSHDUP xmm, xmm VEX.128 -mavxwith AVX enabled

_mm_mask_movehdup_ps __m128 _mm_mask_movehdup_ps(__m128 __W, __mmask8 __U, __m128 __A)

VMOVSHDUP xmm {k}, xmm EVEX.128 -mavx512vl

_mm_maskz_movehdup_ps __m128 _mm_maskz_movehdup_ps(__mmask8 __U, __m128 __A)

VMOVSHDUP xmm {k}{z}, xmm EVEX.128 -mavx512vl

_mm256_movehdup_ps __m256 _mm256_movehdup_ps(__m256 __a)

VMOVSHDUP ymm, ymm VEX.256 -mavx

_mm256_mask_movehdup_ps __m256 _mm256_mask_movehdup_ps(__m256 __W, __mmask8 __U, __m256 __A)

VMOVSHDUP ymm {k}, ymm EVEX.256 -mavx512vl

_mm256_maskz_movehdup_ps __m256 _mm256_maskz_movehdup_ps(__mmask8 __U, __m256 __A)

VMOVSHDUP ymm {k}{z}, ymm EVEX.256 -mavx512vl

_mm512_movehdup_ps __m512 _mm512_movehdup_ps(__m512 __A)

VMOVSHDUP zmm, zmm EVEX.512 -mavx512f

_mm512_mask_movehdup_ps __m512 _mm512_mask_movehdup_ps(__m512 __W, __mmask16 __U, __m512 __A)

VMOVSHDUP zmm {k}, zmm EVEX.512 -mavx512f

_mm512_maskz_movehdup_ps __m512 _mm512_maskz_movehdup_ps(__mmask16 __U, __m512 __A)

VMOVSHDUP zmm {k}{z}, zmm EVEX.512 -mavx512f

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.
ISA setCPUIDProcessors
AVX

AVX
CPUID.01H:ECX[28] AVX

Sandy Bridge, Ivy Bridge, Haswell, Broadwell, Skylake, Comet Lake, Cannon Lake, Ice Lake (client), Tiger Lake, Alder Lake, Arrow Lake, Panther Lake, Nova Lake, Skylake-SP, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Sierra Forest, Clearwater Forest, Knights Landing, Knights Mill, Bulldozer, Piledriver, Zen, Zen+, Zen 2, Zen 3, Zen 4, Zen 5, Zen 6
AVX512F_512

AVX10.1
CPUID.(EAX=07H,ECX=1):EDX[19] AVX10
CPUID.(EAX=24H,ECX=0):EBX[7:0] ≥ 1 AVX10 version

or

AVX512F
CPUID.(EAX=07H,ECX=0):EBX[16] AVX512F

Cannon Lake, Ice Lake (client), Tiger Lake, Nova Lake, Skylake-SP, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Knights Landing, Knights Mill, Zen 4, Zen 5, Zen 6
AVX512F_128

AVX10.1
CPUID.(EAX=07H,ECX=1):EDX[19] AVX10
CPUID.(EAX=24H,ECX=0):EBX[7:0] ≥ 1 AVX10 version

or

AVX512F + AVX512VL
CPUID.(EAX=07H,ECX=0):EBX[16] AVX512F
CPUID.(EAX=07H,ECX=0):EBX[31] AVX512VL

Cannon Lake, Ice Lake (client), Tiger Lake, Nova Lake, Skylake-SP, Cascade Lake, Cooper Lake, Ice Lake (server), Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids, Zen 4, Zen 5, Zen 6
AVX512F_256
Same as AVX512F_128Same as AVX512F_128

More AVX instructions

All 253 AVX instructions

More AVX10.1 instructions

All 686 AVX10.1 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. LLVM 23.1.2's x86 scheduling models (commit 85ac56026243): the latency, reciprocal throughput and ports of each form, as llvm-mca reports them.
  5. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2B, page 4-111 (MOVSHDUP)
  6. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
  7. Intel Advanced Vector Extensions 10.2 Architecture Specification, revision 7.0 (361050-007, April 2026)
  8. 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 and the timings from LLVM's scheduling models, both part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.