25.02.2015 Views

AMD 64-Bit Technology - ECE User Home Pages

AMD 64-Bit Technology - ECE User Home Pages

AMD 64-Bit Technology - ECE User Home Pages

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.

<strong>AMD</strong> <strong>64</strong>-<strong>Bit</strong> <strong>Technology</strong> 26568—Rev. 3.02—August 2002<br />

PMAXSW<br />

Packed Maximum Signed Words<br />

Compares each of the packed 16-bit signed integer values in the first source operand<br />

with the corresponding packed 16-bit signed integer value in the second source<br />

operand and writes the numerically greater of the two values for each comparison in<br />

the corresponding word of the destination (first source). The first source/destination<br />

and second source operands are an XMM register and an XMM register or 128-bit<br />

memory location.<br />

Mnemonic Opcode Description<br />

PMAXSW xmm1, xmm2/mem128 66 0F EE /r Compares packed signed 16-bit integer values in an XMM register<br />

and another XMM register or 128-bit memory location and writes<br />

the greater value of each comparison in destination XMM register.<br />

xmm1<br />

. . . . . .<br />

127 112 111 96 95 80 79 <strong>64</strong> 63 48 47 32 31 16 15 0<br />

. . . . . .<br />

xmm2/mem128<br />

127 112 111 96 95 80 79 <strong>64</strong> 63 48 47 32 31 16 15 0<br />

. . . . . .<br />

maximum<br />

maximum<br />

pmaxsw-128.eps<br />

Related Instructions<br />

PMAXUB, PMINSW, PMINUB<br />

rFLAGS Affected<br />

None<br />

MXCSR Flags Affected<br />

None<br />

254 PMAXSW

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

Saved successfully!

Ooh no, something went wrong!