3-394
INSTRUCTION SET REFERENCE
MINPS—Packed Single-FP Minimum
Description
The MINPS instruction returns the minimum SP FP numbers from XMM1 and XMM2/Mem. If
the values being compared are both zeroes, source2 (xmm2/m128) would be returned. If source2
(xmm2/m128) is an sNaN, this sNaN is forwarded unchanged to the destination (i.e., a quieted
version of the sNaN is not returned).
Figure 3-38. Operation of the MINPS Instruction
Operation
IF (DEST[31-0]=NaN) THEN
DEST[31-0] = SRC[31-0];
ELSE
IF (SRC[31-0] = NaN) THEN
DEST[31-0] = SRC[31-0];
ELSE
IF (DEST[31-0] < SRC/m128[31-0]) THEN
DEST[31-0] = DEST[31-0];
ELSE
DEST[31-0] = SRC/m128[31-0];
FI
FI
FI
OpcodeInstruction
Description
0F,5D,/rMINPS xmm1, xmm2/m128Return the minimum SP numbers between XMM2/Mem and
XMM1.
Xmm1
Xmm2/
m128
MINPS xmm1, xmm2/m128
519.0
99.1
8.7
38.9
107.3
10.99
65.0
267.0
<
<
<
<
38.9
99.1
8.7
107.3
Xmm1
=
=
=
=