x86 Instruction Set Reference
ADDSUBPS
Packed Single-FP Add/Subtract
Opcode | Mnemonic | Description |
---|---|---|
F2 0F D0 /r |
ADDSUBPS xmm1, xmm2/m128 |
Add/Subtract packed SP FP numbers from xmm2/m128 to xmm1. |
Description |
---|
Adds odd-numbered single-precision floating-point values of the source operand (second operand) with the corresponding single-precision floating-point values from the destination operand (first operand); stores the result in the odd-numbered values of the destination operand. Subtracts the even-numbered single-precision floating-point values in the source operand from the corresponding single-precision floating values in the destination operand; stores the result into the even-numbered values of the destination operand. |
Operation |
---|
xmm1[0..31] = xmm1[0..31] - xmm2/m128[0..31]; xmm1[32..63] = xmm1[32..63] + xmm2/m128[32..63]; xmm1[64..95] = xmm1[64..95] - xmm2/m128[64..95]; xmm1[96..127] = xmm1[96..127] + xmm2/m128[96..127]; |
Exceptions |
---|
When the source operand is a memory operand, the operand must be aligned on a 16-byte boundary or a general-protection exception (#GP) will be generated. |
Numeric Exceptions |
---|
Overflow, Underflow, Invalid, Precision, Denormal. |
Protected Mode Exceptions | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Real-Address Mode Exceptions | ||||||||
---|---|---|---|---|---|---|---|---|
|
Virtual-8086 Mode Exceptions | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Instruction | Latency | Throughput | Execution Unit |
---|---|---|---|
CPUID | 0F3n | 0F3n | 0F3n |
ADDSUBPD | 5 | 2 | FP_ADD |