MOVNTDQ
Store Packed Integers Using Non-Temporal Hint
stableVMJITAOTinstruction
Encodings
| Opcode | Instruction | Op/En | 64-bit | Compat/Legacy | Description |
|---|---|---|---|---|---|
66 0F E7 /r | MOVNTDQ m128, xmm1 | A | Valid | Valid | Move packed integer values in xmm1 to m128 using non- temporal hint. |
VEX.128.66.0F.WIG E7 /r | VMOVNTDQ m128, xmm1 | A | Valid | Valid | Move packed integer values in xmm1 to m128 using non- temporal hint. |
VEX.256.66.0F.WIG E7 /r | VMOVNTDQ m256, ymm1 | A | Valid | Valid | Move packed integer values in ymm1 to m256 using non- temporal hint. |
EVEX.128.66.0F.W0 E7 /r | VMOVNTDQ m128, xmm1 | B | Valid | Valid | Move packed integer values in xmm1 to m128 using non- AVX512F) OR AVX10.1 temporal hint. |
EVEX.256.66.0F.W0 E7 /r | VMOVNTDQ m256, ymm1 | B | Valid | Valid | Move packed integer values in zmm1 to m256 using non- AVX512F) OR AVX10.1 temporal hint. |
EVEX.512.66.0F.W0 E7 /r | VMOVNTDQ m512, zmm1 Op/En Tuple Type A N/A B Full Mem | B | Valid | Valid | Move packed integer values in zmm1 to m512 using non- OR AVX10.1 temporal hint. Instruction Operand Encodi ng1 Operand 1 Operan d 2 Operand 3 Operand 4 ModRM:r/m (w) ModRM: reg (r) N/A N/A ModRM:r/m (w) ModRM: reg (r) N/A N/A |
Operand encoding
Each mode is a value of the Op/En column above. It says which field of the encoded instruction carries each operand, in the order they are written, and whether the instruction reads it, writes it or both.
A
modrm.rmescrituraModRM byte, r/m field (bits 2-0); with the SIB byte and the displacement when the mod field asks for themmodrm.reglecturaModRM byte, reg field (bits 5-3)
B
modrm.rmescrituraModRM byte, r/m field (bits 2-0); with the SIB byte and the displacement when the mod field asks for themmodrm.reglecturaModRM byte, reg field (bits 5-3)
Tupla: Full Mem
Measured cost
Loading measurements from arch-data...
Description
Moves the packed integers in the source operand (second operand) to the destination operand (first operand) using a non-temporal hint to prevent caching of the data during the write to memory. The source operand is an XMM register, YMM register or ZMM register, which is assumed to contain integer data (packed bytes, words, doublewords, or quadwords). The destination operand is a 128-bit, 256-bit or 512-bit memory location. The memory operand must be aligned on a 16-byte (128-bit version), 32-byte (VEX.256 encoded version) or 64-byte (512-bit version) boundary otherwise a general-protection exception (#GP) will be generated.
The non-temporal hint is implemented by using a write combining (WC) memory type protocol when writing the data to memory. Using this protocol, the processor does not write the data into the cache hierarchy, nor does it fetch the corresponding cache line from memory into the cache hierarchy. The memory type of the region being written to can override the non-temporal hint, if the memory address specified for the non-temporal store is in an uncacheable (UC) or write protected (WP) memory region. For more information on non-temporal stores, see "Caching of Temporal vs. Non-Temporal Data" in Chapter 10 in the IA-32 Intel Architecture Software Developer's Manual, Volume 1.
Because the WC protocol uses a weakly-ordered memory consistency model, a fencing operation implemented with the SFENCE or MFENCE instruction should be used in conjunction with VMOVNTDQ instructions if multiple processors might use different memory types to read/write the destination memory locations.
Note: VEX.vvvv and EVEX.vvvv are reserved and must be 1111b, VEX.L must be 0; otherwise instructions will
#UD.Operation
VMOVNTDQ(EVEX Encoded Versions)
VL = 128, 256, 512
DEST[VL-1:0] := SRC[VL-1:0]
1. ModRM.MOD != 011B
DEST[MAXVL-1:VL] := 0
MOVNTDQ (Legacy and VEX Versions)
DEST := SRCIntel C/C++ compiler intrinsics
VMOVNTDQ void _mm512_stream_si512(void * p, __m512i a);
VMOVNTDQ void _mm256_stream_si256 (__m256i * p, __m256i a);
MOVNTDQ void _mm_stream_si128 (__m128i * p, __m128i a);SIMD Floating-Point Exceptions
None.
Other Exceptions
Non-EVEX-encoded instruction, see Exceptions Type1.SSE2 in Table 2-18, "Type 1 Class Exception Conditions."
EVEX-encoded instruction, see Table 2-47, "Type E1NF Class Exception Conditions."
Additionally:
#UD If VEX.vvvv != 1111B or EVEX.vvvv != 1111B.