phaddw

Packed Horizontal Add Word

PHADDW xmm1, xmm2/m128

Adds adjacent 16-bit integers horizontally.

Details

The Packed Horizontal Add Word instruction adds adjacent 16-bit integers horizontally.

Pseudocode Operation

// Adds adjacent 16-bit integers horizontally

Example

PHADDW xmm1, xmm2/m128

Encoding

Binary Layout
66
+0
0F
+1
38
+2
01
+3
 
Format SSSE3
Opcode 66 0F 38 01
Extension SSSE3

Operands

  • dest
    128-bit XMM SIMD register
  • src
    128-bit XMM SIMD register or Memory operand