Intel 64 and IA-32 Architectures Software Developers Manual Volume 2A, Instruction Set Reference, A-M

Vol. 2 3-435
INSTRUCTION SET REFERENCE, A-M
HADDPS—Packed Single-FP Horizontal Add
Description
Adds the single-precision floating-point values in the first and second dwords of the
destination operand and stores the result in the first dword of the destination
operand.
Adds single-precision floating-point values in the third and fourth dword of the desti-
nation operand and stores the result in the second dword of the destination operand.
Adds single-precision floating-point values in the first and second dword of the
source operand and stores the result in the third dword of the destination operand.
Adds single-precision floating-point values in the third and fourth dword of the source
operand and stores the result in the fourth dword of the destination operand. See
Figure 3-11.
Opcode Instruction
64-Bit
Mode
Compat/
Leg Mode Description
F2 0F 7C
/r
HADDPS xmm1,
xmm2/m128
Valid Valid Horizontal add packed single-
precision floating-point values from
xmm2/m128 to xmm1.
Figure 3-11. HADDPS—Packed Single-FP Horizontal Add
20
+$''36[PP[PPP
5(68/7
[PP
[PP
P
[PP>@
[PP>@
>@
[PP>@
[PP>@
>@
>@ >@
[PP
>@>@
[PPP
>@[PP
P>@
>@
[PPP
>@[PP
P>@
>@
>@ >@
>@>@