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

VLDMXCSR is the VEX form of LDMXCSR, whose page describes MXCSR’s fields, the #GP for reserved bits and why a newly unmasked exception waits for the next instruction that reports it. It loads MXCSR from a doubleword in memory exactly as LDMXCSR does; the encoding only adds two #UD conditions, VEX.L set and VEX.vvvv other than 1111b. It needs AVX, and there is no EVEX form, so code built for AVX-512 loads MXCSR with this one. VSTMXCSR is the store.

Zen 5’s recorded cases:

  • Over MXCSR 9FC0H, with FTZ and DAZ set, it loaded 1F80H, the value after reset.
  • Over FFFFH it loaded 0, which unmasks every exception, without a fault, the flags being cleared by the same load.
  • It loaded 2FFFFH, with bit 17, AMD’s misaligned-exception mask, set, and raised #GP for 11F80H, leaving MXCSR at 1F80H, as LDMXCSR’s cases do.

In compiled code

In our builds at -O2 with -mavx, -march=x86-64-v3 or x86-64-v4, GCC 14 and Clang 23 store the argument of _mm_setcsr(v) to the stack and load it with VLDMXCSR. For _MM_SET_FLUSH_ZERO_MODE both store MXCSR with VSTMXCSR, set bit 15 and load it back: GCC ORs 8000h into the stack slot itself, while Clang ORs in EAX and stores to a second slot before loading. _MM_SET_ROUNDING_MODE follows the same pattern, clearing bits 14:13 and setting the new mode in between.

AMD’s latency spreadsheet for Zen 5 gives VLDMXCSR one macro-op on pipe FP1, one per cycle and no latency, the cells of LDMXCSR. VSTMXCSR, two macro-ops, is listed at 0.06 to 0.07 per cycle: of the two halves of a change to MXCSR, the store has by far the lower throughput.

Forms

Every encoding of VLDMXCSR that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
VLDMXCSR m32 VLDMXCSR_MEMdVEX.LZ.NP.0F.WIG AE /2AVX

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.
Modelm32
Sandy Bridge5 / 1p05
Haswell, Broadwell, Skylake, Skylake-SP, Ice Lake7 / 1p0156
Alder Lake, Sapphire Rapids7 / 1p06
Lunar Lake7 / 0.5V0 V1 p0 p2 p4
Piledriver5 / 0.5AGLU01 Load
Zen, Zen 2100 / 0.25
Zen 3, Zen 45 / 1.5ALU0 ALU1 ALU2 ALU3
Jaguar3 / 1LAGU

Operation

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

v = src.read()
if v & ~mxcsr_mask:                  # a bit the processor does not have
    fault(GP, 0)
mxcsr = v                            # a flag set with its mask clear
                                     # raises nothing here, nor later:
                                     # an instruction raises only what
                                     # it reports itself

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
VLDMXCSR m32
m32explicitread
MXCSRimplicitwrite

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-5L

Attributes

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

All forms
follows MXCSR

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. LLVM 23.1.2's x86 scheduling models (commit 85ac56026243): the latency, reciprocal throughput and ports of each form, as llvm-mca reports them.
  4. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2A, page 3-539 (LDMXCSR)
  5. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
  6. 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 timings come from LLVM's scheduling models, part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.