PADDW
Usage: PADDW dest,src Modifies flags: None
Performs an SIMD add of the packed integers from the 'src' and the 'dest' , and stores the packed integer results in the 'dest' operand.
Add Packed Integers
PADDB mm1,mm2/m64 ; 0F FC /r [PENT,MMX]
PADDW mm1,mm2/m64 ; 0F FD /r [PENT,MMX]
PADDD mm1,mm2/m64 ; 0F FE /r [PENT,MMX]
PADDB xmm1,xmm2/m128 ; 66 0F FC /r [WILLAMETTE,SSE2]
PADDW xmm1,xmm2/m128 ; 66 0F FD /r [WILLAMETTE,SSE2]
PADDD xmm1,xmm2/m128 ; 66 0F FE /r [WILLAMETTE,SSE2]
PADDx performs packed addition of the two operands, storing the result in the destination (first) operand.
PADDB treats the operands as packed bytes, and adds each byte individually;
PADDW treats the operands as packed words;
PADDD treats its operands as packed doublewords.
When an individual result is too large to fit in its destination, it is wrapped around and the low bits are stored, with the carry bit discarded.
EXAMPLE:
paddw xmm1 Label