Instruction
MOVNTQ
Stores an MMX register to memory with a non-temporal hint, which lets the write bypass the caches; SSE.
- Extensions
- Forms
- 1 (1 Legacy)
- Data
- Intel XED v2026.08.23
MOVNTQ stores the 8 bytes of an MMX register with a non-temporal hint,
through a write-combining buffer instead of the caches. It is the MMX
member of the family that MOVNTI and
MOVNTDQ describe: weakly ordered, so a writer needs
SFENCE before another thread or a device is told that
the data is there, and overridden by uncacheable or write-protected
memory, where it is an ordinary store. It came with SSE and with AMD’s
MMX extensions; AMD’s manual (Volume 5) accepts either CPUID bit. On
Zen 5 the recorded movntq qword ptr [mem], mm0 stored MM0’s bytes, low
byte first.
Like every MMX instruction it switches the x87 unit to MMX use, TOP 0 and all tags valid, so code that mixes it with x87 arithmetic needs EMMS before the next x87 instruction.
The intrinsic
_mm_stream_pi(p, v) is the intrinsic Intel’s entry names, and the
compilers part ways over it. GCC 14 at -O2 emits MOVNTQ with -m32 and
SSE, a loop of them for a copy, but in 64-bit code it moves the value to
a general-purpose register and stores it with MOVNTI. Clang 23 never
uses an MMX register in our builds: in 64-bit code it emits a plain
MOVSD, which drops the hint, or MOVNTSD with
-msse4a; with -m32 -march=pentium4 it emits two 32-bit MOVNTIs, and
with -march=pentium3, which lacks MOVNTI, two plain MOVs.
AMD’s Zen 5 guide lists MOVNTQ as one macro-op on pipes FP4 and FP5, two per cycle, and names it among the streaming stores that use the write-combining buffers (Section 2.13).
Forms
| Instruction | Encoding | Requires |
|---|---|---|
MOVNTQ m64, mm
MOVNTQ_MEMq_MMXq | NP 0F E7 /r | SSE |
Latency and throughput
| Model | m64, mm |
|---|---|
| Sandy Bridge | 1 / 1p4 p23 |
| Haswell, Broadwell, Skylake, Skylake-SP | 1 / 1p2347 |
| Ice Lake | 1 / 0.5p4789 |
| Alder Lake, Sapphire Rapids | 511 / 0.5p4789 |
| Lunar Lake | 511 / 0.5p10 p11 p25 p26 p27 |
| Bonnell | 1 / 1p0 |
| Silvermont | 1 / 1MEC |
| Piledriver, Jaguar | 2 / 1FPU1 |
| Zen | 1 / 0.5AGU0 AGU1 |
| Zen 2 | 1 / 0.33AGU0 AGU1 AGU2 |
| Zen 3, Zen 4 | 1 / 1FP45 FPSt LSU Store |
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.
Result quadword i is quadword i of mm2. Result quadwords: a0.
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
mem.write(mm2.read())
# x87: TOP = 0, all tags validRun on AMD Zen 5 (EPYC 9645): 1 case.
Operands
| Operand | Kind | Action |
|---|---|---|
MOVNTQ m64, mm | ||
m64 | explicit | write |
mm | 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.
- All forms
mmx-nofp2
Attributes
What else XED records about the forms. How to read.
- All forms
- non-temporal hint; may abort a TSX transaction
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 |
|---|---|---|
SSE | SSE | Every x86-64 processor in XED’s model and Zen 3 to Zen 6 |
More SSE instructions
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model. - The CPU data of x86-64.net: Zen 3 to Zen 6, from GCC’s
-marchfeature sets and AMD’s Processor Programming References, which the page of each processor cites. - 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-98 (MOVNTQ)
- Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
- AMD64 Architecture Programmer's Manual, Volume 5: 64-Bit Media and x87 Floating-Point Instructions (26569, rev. 3.16, November 2021), Wayback Machine copy of AMD's PDF
- 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.