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

VSTMXCSR is the VEX form of STMXCSR, whose page covers what the stored doubleword holds and how code reads the exception flags from it. It stores MXCSR exactly as STMXCSR does; the encoding only adds two #UD conditions, VEX.L set and VEX.vvvv other than 1111b, as for its partner VLDMXCSR. It needs AVX, and there is no EVEX form. Zen 5’s two recorded cases stored 1F80H and FFFFH as 00001F80H and 0000FFFFH, changed none of the twelve bytes around the doubleword and left MXCSR as it was.

In compiled code

In our builds at -O2 with -mavx, -march=x86-64-v3 or x86-64-v4, GCC 14 and Clang 23 compile _mm_getcsr() to VSTMXCSR into the red zone below RSP and a MOV of the doubleword into EAX. Clearing the exception flags, _mm_setcsr(_mm_getcsr() & ~0x3fu), is VSTMXCSR, an AND and VLDMXCSR: GCC ANDs the stack slot in place, Clang goes through EAX and a second slot.

A function that saves MXCSR, sets rounding toward zero, divides two floats and restores the saved value shows that the intrinsics do not pin arithmetic in place. Clang keeps the VDIVSS between the two VLDMXCSRs; GCC moves it after the second, so the division runs in the restored mode, with -frounding-math as well: GCC treats the division as independent of the register that controls its rounding.

AMD’s latency spreadsheet for Zen 5 gives VSTMXCSR two macro-ops, on pipe FP1 and on FP4 or FP5, at 0.06 to 0.07 per cycle, the cells of STMXCSR: about one every 15 cycles, where VLDMXCSR is listed at one per cycle.

Forms

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

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 Lake2 / 1p5
Alder Lake, Sapphire Rapids12 / 1p06
Lunar Lake100 / 3V0 V1 p0 p2 p4
Piledriver1 / 18AGLU01 Store
Zen, Zen 2100 / 0.25
Zen 3, Zen 42 / 15ALU0 ALU1 ALU2 ALU3
Jaguar1 / 1SAGU

Operation

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

dest.write(mxcsr)                    # the bits it lacks as zeros

Run on AMD Zen 5 (EPYC 9645): 2 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
VSTMXCSR m32
m32explicitwrite
MXCSRimplicitread

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

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 2B, page 4-676 (STMXCSR)
  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.