Instruction
MOVSS
Moves the low single between XMM registers or to and from memory; a load zeroes the rest, a register move keeps it.
- Extensions
- Forms
- 4 (4 Legacy)
- Data
- Intel XED v2026.08.23
MOVSS moves one single, the low 32 bits of an XMM register, and it is the oldest of the scalar moves, from the first SSE. It behaves as MOVSD does for doubles, whose page covers the three cases in full: a load from memory zeroes bits 127:32, a store writes four bytes, and a move between registers replaces bits 31:0 of the destination and keeps the other three singles. Zen 5’s recorded cases did each of these, and kept bits 511:128 of the destination as legacy SSE instructions do. The memory operand need not be aligned, and nothing is converted, so MXCSR plays no part. VMOVSS is the VEX and EVEX form.
One single, the rest zero
The register form’s merge is what makes one thing awkward: putting a
single alone in a register, with zeros above it, as _mm_set_ss(x) asks
for when x is already in a register. SSE has no MOVQ-like move for 32
bits within XMM registers, and in our builds at -O2 for the default
target the two compilers work around that differently:
- GCC 14 sends the value through a general-purpose register,
movd eax, xmm0andmovd xmm0, eax(MOVD), which zero-extends on the way back. - Clang 23 zeroes another register with XORPS, merges the single into it with a register MOVSS, and copies the result back with MOVAPS.
With -march=x86-64-v2, which has SSE4.1, GCC clears the three upper
singles with one INSERTPS with immediate 0Eh, and
Clang blends with the zeroed register using BLENDPS
with immediate 14 (1110b). Clang also replaces the merging move of
_mm_move_ss, and a store to element 0 of a __m128, by BLENDPS with
immediate 1, while GCC keeps MOVSS.
Loads and stores of float are MOVSS in both compilers; a copy between
registers is MOVAPS, which writes the whole register, as Intel’s
optimization guide recommends over a register MOVSS (Section 3.5.2.4).
In the optimization guide
What the optimization guide says about MOVSS, a line per claim. Each links to the claim in the guide, with its sources and where they differ.
Out of order
- Partial register and flag writes: Scalar SSE instructions that write only the low element of an XMM register keep the rest of it, and so wait for its last writer:
movssandmovsdbetween registers,movlpdandmovhpdfrom memory, and conversions and square roots such ascvtsi2sdandsqrtss.
Forms
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 singles 3 to 0: unchanged, unchanged, unchanged, a0.
MOVSS xmm, m32Result singles 3 to 0: 0, 0, 0, a0.
MOVSS m32, xmmm32 receives single 0 of xmm2: a0.
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
xmm1.d[0] = xmm2.d[0] # the others keep their values
# bits 128 and up of the register are unchangedRun on AMD Zen 5 (EPYC 9645): 2 cases.
MOVSS xmm, m32xmm1.write(mem.d[0]) # bits 127:32 zeroed
# bits 128 and up of the register are unchangedRun on AMD Zen 5 (EPYC 9645): 1 case.
MOVSS m32, xmmmem.d[0] = xmm2.d[0]Run on AMD Zen 5 (EPYC 9645): 1 case.
Operands
| Operand | Kind | Action |
|---|---|---|
MOVSS xmm, xmm/m32 | ||
xmm | explicit | write |
xmm/m32 | explicit | read |
MOVSS xmm/m32, xmm | ||
xmm/m32 | explicit | write |
xmm | 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
SSE_TYPE_5
Intrinsics
The C intrinsics of Clang 23.1.2 that compile to MOVSS, 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 |
|---|---|
_mm_load_ss
__m128 _mm_load_ss(const float *__p) |
|
_mm_move_ss
__m128 _mm_move_ss(__m128 __a, __m128 __b) |
|
_mm_store_ss
void _mm_store_ss(float *__p, __m128 __a) |
|
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. - 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. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2B, page 4-117 (MOVSS)
- Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
- AMD64 Architecture Programmer's Manual, Volume 4: 128-Bit and 256-Bit Media Instructions (26568, rev. 3.25, November 2021), Wayback Machine copy of AMD's PDF
- 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, part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.