Instruction
TILESTORED
Stores a tile to memory, row by row, with the row stride taken from the index register of its SIB-encoded address.
TILESTORED writes a tile to memory row by row, the store that matches TILELOADD, and addresses memory the same way: the operand must use a SIB byte, the base plus displacement is where row 0 goes, and the index register, shifted by the scale, is the distance between rows. Each row writes exactly the tile’s configured bytes per row, so with a stride wider than the tile the bytes between rows are left alone: a 16 × 64-byte tile can be stored straight into its place in a larger matrix, such as a block of C in a matrix multiplication.
The stride is a register
The stride cannot be an immediate. In our builds with -mamx-tile, GCC 14
and Clang 23 at -O2 compiled _tile_stored(0, c, 64) to mov eax, 64
and tilestored [rdx+rax], tmm0; with a stride already in a register,
they used it directly. The tile number is a constant, as in all of GCC’s
and Clang’s _tile_* intrinsics.
Faults and restarts
The tile must be one the configuration gives rows, in whole dwords per row, and like every AMX instruction TILESTORED raises #UD without a tile configuration, outside 64-bit mode, or before the operating system has enabled the tile state in XCR0. A page fault can stop it in the middle: the rows already written stay written, and start_row in the tile configuration records where to go on, so that the instruction continues from that row when it runs again; it raises #UD if start_row is not below the tile’s rows. AMX instructions never raise #AC, whatever the alignment. Under ACE’s palette 2 there is no tile store at all: ACE moves results out of tiles through vector registers, with TILEMOVROW.
Reading the rows back
Intel’s optimization manual says that a tile store can forward its data to a later load other than a tile load only when both are full 64-byte lines, and advises against relying on it: the load should come some tens of cycles later. A tile load cannot take data from stores still in the store buffer at all (Section 20.15).
Forms
| Instruction | Encoding | Requires |
|---|---|---|
TILESTORED sibmem, tmm 64-bit mode only
TILESTORED_MEMu32_TMMu32 | VEX.LZ.F3.0F38.W0 4B /r | AMX_TILE |
TILESTORED sibmem, tmm
TILESTORED_MEMu32_TMMu32_APX | EVEX.LLZ.F3.0F38.W0 4B /r | APX_F + AMX_TILE |
Latency and throughput
| Model | sibmem, tmm |
|---|---|
| Sapphire Rapids | 100 / 0.25p0156 |
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
on = xcr0 if cr4 >> 18 & 1 else 0 # XCR0, where CR4.OSXSAVE is set
if on >> 17 & 3 != 3: # TILECFG and TILEDATA
fault(UD)
if palette != 1: # 0: no tiles configured; ACE's
fault(UD) # palette 2 has no stores
if not tmm2.rows or tmm2.colsb % 4: # left out, or not whole dwords
fault(UD)
if start_row >= tmm2.rows:
fault(UD)
if xfd >> 18 & 1: # the OS keeps the tiles from
fault(NM) # this thread
a = mem.address # row 0: base + displacement
s = mem.stride # index * scale, 0 without one
n = tmm2.colsb
for r in range(start_row, tmm2.rows):
store(a + r * s, 8 * n, tmm2.row[r])
start_row = 0
# a fault in row r leaves the rows before it stored and start_row
# = r, where the instruction goes on when it runs againNot run on a processor: none of these processors has AMX.
Operands
| Operand | Kind | Action |
|---|---|---|
TILESTORED sibmem, tmm 64-bit mode only | ||
sibmem | explicit | write |
tmm | explicit | read |
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
AMX-E3- EVEX forms
AMX-E3-EVEX
Attributes
What else XED records about the forms. How to read.
- All forms
- may abort a TSX transaction
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to TILESTORED, 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.
| Intrinsic | Compiles to |
|---|---|
_tile_stored
void _tile_stored(const int dst, void *base, __SIZE_TYPE__ stride) |
|
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.
| ISA set | CPUID | Processors |
|---|---|---|
AMX_TILE | AMX_TILE | Sapphire Rapids, Emerald Rapids, Granite Rapids, Diamond Rapids |
APX_F_AMX | APX_F + AMX_TILE | Diamond Rapids |
More AMX-TILE instructions
More APX instructions
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model. - 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. - LLVM 23.1.2's x86 scheduling models (commit
85ac56026243): the latency, reciprocal throughput and ports of each form, as llvm-mca reports them. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2B, page 4-727 (TILESTORED)
- Intel Advanced Performance Extensions (Intel APX) Architecture Specification, revision 9.0 (355828-009, August 2026)
- Intel Architecture Instruction Set Extensions and Future Features Programming Reference (319433-062, June 2026)
- x86 Ecosystem Advisory Group: AI Compute Extensions (ACE) Specification, version 1.16.2 (July 2026)
- Intel 64 and IA-32 Architectures Optimization Reference Manual, Volume 1 (248966-051, October 2026)
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.