3-25
INSTRUCTION SET REFERENCE
ADDPSPacked Single-FP Add
Description
The ADDPS instruction adds the packed SP FP numbers of both their operands.
Operation
DEST[31-0]= DEST[31-0] + SRC/m128[31-0];
DEST[63-32]= DEST[63-32] + SRC/m128[63-32];
DEST[95-64]= DEST[95-64] + SRC/m128[95-64];
DEST[127-96]= DEST[127-96] + SRC/m128[127-96];
Intel C/C++ Compiler Intrinsic Equivalent
__m128 _mm_add_ps(__m128 a, __m128 b)
Adds the four SP FP values of a and b.
OpcodeInstruction
Description
0F,58,/rADDPS xmm1, xmm2/m128Add packed SP FP numbers from XMM2/Mem to XMM1.
Figure 3-3. Operation of the ADDPS Instruction
Xmm1
Xmm2/
m128
Xmm1
1.0
5.0
5.0
5.0
5.0
2.0
3.0
4.0
ADD PS xmm1, xmm2/M128
4.0
3.0
+
+
+
=
=
=
=