xsmaxdp
Vector Scalar Maximum Double-Precision Floating-Point
Compares the doubleword elements of two vector scalar registers and stores the maximum value in another vector scalar register.
Details
The xsmaxdp instruction compares the double-precision floating-point value in doubleword element 0 of VSR[XA] (src1) with the double-precision floating-point value in doubleword element 0 of VSR[XB] (src2). The result is placed in doubleword element 0 of VSR[XT], and doubleword element 1 of VSR[XT] is set to 0. If either src1 or src2 is a NaN, the result is determined according to the rules specified in Table 7.64.
Pseudocode Operation
Programming Note
['This instruction can be used to operate on single-precision source operands.', 'Previous versions of the architecture allowed the contents of doubleword 1 of the result register to be undefined. However, all processors that support this instruction write 0s into doubleword 1 of the result register, as is required by this version of the architecture.']
Example
Encoding
Operands
-
XT
Target -
XA
Src A -
XB
Src B