3-675
INSTRUCTION SET REFERENCE
SUBPS—Packed Single-FP Subtract
Description
The SUBPS instruction subtracts the packed SP FP numbers of both their operands.
Figure 3-93. Operation of the SUBPS Instruction
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_sub_ps(__m128 a, __m128 b)
Subtracts the four SP FP values of a and b.
OpcodeInstruction
Description
0F,5C,/rSUBPS xmm1
xmm2/m128
Subtract packed SP FP numbers in XMM2/Mem from
XMM1.
Xmm1
Xmm2/
m128
Xmm1
=
=
=
=
-
-
-
-