3-27
INSTRUCTION SET REFERENCE
ADDSS—Scalar Single-FP Add
Description
The ADDSS instruction adds the lower SP FP numbers of both their operands; the upper three
fields are passed through from xmm1.
Operation
DEST[31-0]= DEST[31-0] + SRC/m32[31-0];
DEST[63-32]= DEST[63-32];
DEST[95-64]= DEST[95-64];
DEST[127-96]= DEST[127-96];
Intel C/C++ Compiler Intrinsic Equivalent
__m128 _mm_add_ss(__m128 a, __m128 b)
Adds the lower SP FP (single-precision, floating-point) values of a and b; the upper three SP FP
values are passed through from a.
OpcodeInstruction
Description
F3,0F,58, /rADDSS xmm1, xmm2/m32Add the lower SP FP number from XMM2/Mem to XMM1.
Figure 3-4. Operation of the ADDSS Instruction
Xmm1
Xmm2/
m32
Xmm1
5.0
4.0
ADD SS xmm1, xmm2/m32
+
+
+
=
=
=
=