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

VZEROALL sets vector registers 0 to 15 to zero, whole: XMM, YMM and, on processors with AVX-512, the full ZMM register. Outside 64-bit mode only registers 0 to 7 exist and are cleared. It has no operands and changes no flags; MXCSR is left alone. It shares opcode 0F 77 with VZEROUPPER, told apart by VEX.L (1 here, 0 there), and with EMMS, which has no VEX prefix.

What it leaves

Both vendors’ manuals state that ZMM16 to ZMM31 keep their values, and neither says anything about the mask registers. Zen 5 agrees: its one recorded case cleared all 512 bits of ZMM0 to ZMM15, which started with nonzero values, and changed nothing in ZMM16 to ZMM31, K0 to K7 or MXCSR.

Compared with VZEROUPPER

VZEROUPPER, whose page covers the cost of mixing AVX and SSE code, clears only bits 128 and up and is what compilers emit before calls and returns. VZEROALL also clears the low halves. Both leave the upper state clean, and Intel’s optimization manual draws them as the same transition in its diagrams of the AVX and SSE states (Figures 15-1 and 15-2, Section 15.3), but VZEROALL destroys every value in the sixteen registers, including the arguments and results of the vector calling conventions. GCC 14 and Clang 23 compile _mm256_zeroall() to it, but put VZEROUPPER at the end of functions that used the upper halves.

It is also the slower of the two on Zen 5: AMD’s latency spreadsheet lists VZEROUPPER as one macro-op, but VZEROALL as microcoded. Where only the upper state needs to be clean, VZEROUPPER is the instruction to use.

Forms

Every encoding of VZEROALL that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
VZEROALL VZEROALLVEX.256.NP.0F.WIG 77AVX

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.
ModelVZEROALL
Sandy Bridge9 / 2p5
Haswell, Broadwell8 / 1p56
Skylake16 / 4p0156
Skylake-SP, Ice Lake12 / 5p0156
Alder Lake16 / 3p0 p1 p5 p6 p11
Sapphire Rapids12 / 3p0 p1 p5 p6 p11
Lunar Lake16 / 1.67p012345
Piledriver90 / 8
Zen, Zen 2100 / 0.25
Zen 3, Zen 410 / 6FP0 FP1 FP2 FP3
Jaguar90 / 36.5

Operation

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

for i in range(16):
    zmm[i] = 0

Run on AMD Zen 5 (EPYC 9645): 1 case.

Operands

None: XED lists no operands for this form.

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

Intrinsics

The C intrinsics of Clang 23.1.2 that compile to VZEROALL, 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
_mm256_zeroall void _mm256_zeroall(void)

VZEROALL VEX.256 -mavx

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. 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 2C, page 5-775 (VZEROALL)
  6. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
  7. AMD64 Architecture Programmer's Manual, Volume 4: 128-Bit, 256-Bit, and 512-Bit Media Instructions (26568, rev. 3.27, July 2026)
  8. Intel 64 and IA-32 Architectures Optimization Reference Manual, Volume 1 (248966-051, October 2026)
  9. 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.