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

Create successful ePaper yourself

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

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

MAXSD<br />

Maximum Scalar Double-Precision Floating-<br />

Point<br />

Compares the double-precision floating-point value in the low-order <strong>64</strong> bits of the first<br />

source operand with the double-precision floating-point value in the low-order <strong>64</strong> bits<br />

of the second source operand and writes the numerically greater of the two values in<br />

the low-order quadword of the destination (first source). The first source/destination<br />

operand is an XMM register. The second source operand is another XMM register or a<br />

<strong>64</strong>-bit memory location. The high-order quadword of the destination XMM register is<br />

not modified.<br />

Mnemonic Opcode Description<br />

MAXSD xmm1, xmm2/mem<strong>64</strong> F2 0F 5F /r Compares scalar double-precision values in an XMM register and<br />

another XMM register or <strong>64</strong>-bit memory location and writes the<br />

greater of the two values in the destination XMM register.<br />

xmm1<br />

xmm2/mem<strong>64</strong><br />

127 <strong>64</strong> 63 0 127 <strong>64</strong> 63 0<br />

maximum<br />

maxsd.eps<br />

If both source operands are equal to zero, the value in the second source operand is<br />

returned. If either operand is a NaN (SNaN or QNaN), and invalid-operation<br />

exceptions are masked, the second source operand is written to the destination.<br />

Related Instructions<br />

MAXPD, MAXPS, MAXSS, MINPD, MINPS, MINSD, MINSS<br />

rFLAGS Affected<br />

None<br />

126 MAXSD

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

Saved successfully!

Ooh no, something went wrong!