03.03.2013 Views

Intel® Architecture Instruction Set Extensions Programming Reference

Intel® Architecture Instruction Set Extensions Programming Reference

Intel® Architecture Instruction Set Extensions Programming Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

INSTRUCTION SET REFERENCE<br />

PADDSB/PADDSW — Add Packed Signed Integers with Signed Saturation<br />

Opcode/<br />

<strong>Instruction</strong><br />

Description<br />

Op/<br />

En<br />

64/32<br />

-bit<br />

Mode<br />

CPUID<br />

Feature<br />

Flag<br />

Description<br />

66 0F EC /r A V/V SSE2 Add packed signed byte integers from xmm2/m128 and xmm1 and<br />

saturate the results.<br />

PADDSB xmm1, xmm2/m128<br />

66 0F ED /r A V/V SSE2 Add packed signed word integers from xmm2/m128 and xmm1 and<br />

saturate the results.<br />

PADDSW xmm1, xmm2/m128<br />

VEX.NDS.128.66.0F.WIG EC /r B V/V AVX Add packed signed byte integers from xmm2, and xmm3/m128 and<br />

store the saturated results in xmm1.<br />

VPADDSB xmm1, xmm2,<br />

xmm3/m128<br />

VEX.NDS.128.66.0F.WIG ED /r B V/V AVX Add packed signed word integers from xmm2, and xmm3/m128 and<br />

store the saturated results in xmm1.<br />

VPADDSW xmm1, xmm2,<br />

xmm3/m128<br />

VEX.NDS.256.66.0F.WIG EC /r B V/V AVX2 Add packed signed byte integers from ymm2, and ymm3/m256 and<br />

store the saturated results in ymm1.<br />

VPADDSB ymm1, ymm2,<br />

ymm3/m256<br />

VEX.NDS.256.66.0F.WIG ED /r B V/V AVX2 Add packed signed word integers from ymm2, and ymm3/m256 and<br />

store the saturated results in ymm1.<br />

VPADDSW ymm1, ymm2,<br />

ymm3/m256<br />

<strong>Instruction</strong> Operand Encoding<br />

Op/En Operand 1 Operand 2 Operand 3 Operand 4<br />

A ModRM:reg (r, w) ModRM:r/m (r) NA NA<br />

B ModRM:reg (w) VEX.vvvv ModRM:r/m (r) NA<br />

(V)PADDSB performs a SIMD add of the packed signed integers with saturation from the first source operand and<br />

second source operand and stores the packed integer results in the destination operand. When an individual byte<br />

result is beyond the range of a signed byte integer (that is, greater than 7FH or less than 80H), the saturated value<br />

of 7FH or 80H, respectively, is written to the destination operand.<br />

(V)PADDSW performs a SIMD add of the packed signed word integers with saturation from the first source operand<br />

and second source operand and stores the packed integer results in the destination operand. When an individual<br />

word result is beyond the range of a signed word integer (that is, greater than 7FFFH or less than 8000H), the saturated<br />

value of 7FFFH or 8000H, respectively, is written to the destination operand.<br />

VEX.256 encoded version: The first source operand is a YMM register. The second source operand is a YMM register<br />

or a 256-bit memory location. The destination operand is a YMM register.<br />

VEX.128 encoded version: The first source operand is an XMM register. The second source operand is an XMM<br />

register or 128-bit memory location. The destination operand is an XMM register. The upper bits (255:128) of the<br />

corresponding YMM register destination are zeroed.<br />

128-bit Legacy SSE version: The first source operand is an XMM register. The second operand can be an XMM<br />

register or a 128-bit memory location. The destination is not distinct from the first source XMM register and the<br />

upper bits (255:128) of the corresponding YMM register destination are unmodified.<br />

5-30 Ref. # 319433-014

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!