09.01.2013 Views

AMD x86-64 Architecture Programmer's Manual, Volume 4, 128-Bit ...

AMD x86-64 Architecture Programmer's Manual, Volume 4, 128-Bit ...

AMD x86-64 Architecture Programmer's Manual, Volume 4, 128-Bit ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

26568—Rev. 3.05—September 2003 <strong>AMD</strong><strong>64</strong> Technology<br />

PSUBSB Packed Subtract Signed With Saturation Bytes<br />

Subtracts each packed 8-bit signed integer value in the second source operand from<br />

the corresponding packed 8-bit signed integer in the first source operand and writes<br />

the signed integer result of each subtraction in the corresponding byte of the<br />

destination (first source). The first source/destination operand is an XMM register and<br />

the second source operand is another XMM register or <strong>128</strong>-bit memory location.<br />

Mnemonic Opcode Description<br />

PSUBSB xmm1, xmm2/mem<strong>128</strong> 66 0F E8 /r Subtracts packed byte signed integer values in an XMM register<br />

or <strong>128</strong>-bit memory location from packed byte integer values in<br />

another XMM register and writes the result in the destination<br />

XMM register.<br />

For each packed value in the destination, if the value is larger than the largest signed<br />

8-bit integer, it is saturated to 7Fh, and if the value is smaller than the smallest signed<br />

8-bit integer, it is saturated to 80h.<br />

Related Instructions<br />

PSUBB, PSUBD, PSUBQ, PSUBSW, PSUBUSB, PSUBUSW, PSUBW<br />

rFLAGS Affected<br />

None<br />

127 0 127 0<br />

subtract<br />

saturate<br />

xmm1 xmm2/mem<strong>128</strong><br />

. . . . . . . . . . . . . .<br />

. . . . . . . . . . . . . .<br />

subtract<br />

saturate<br />

. . . . . . . . . . . . . .<br />

psubsb-<strong>128</strong>.eps<br />

PSUBSB 315

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

Saved successfully!

Ooh no, something went wrong!