xsminqp

VSX Scalar Minimum Quad-Precision

xsminqp vD, vA, vB

Selects minimum of two Quad floats.

Details

Selects the smaller of two quad-precision floating-point values in VSRs vA and vB according to IEEE 754 total ordering (with −0 less than +0, and signaling NaN handling) and stores the result in VSR vD. This instruction updates FPSCR with any NaN exception flags.

Pseudocode Operation

if (vA is NaN) and (vB is NaN) then vD ← vA
else if vA is NaN then vD ← vB
else if vB is NaN then vD ← vA
else vD ← min(vA, vB)

Example

xsminqp vd, va, vb

Encoding

Binary Layout
63
0
vD
6
vA
11
vB
16
868
21
/
31
 
Format X-form
Opcode 0xFC0006C8
Extension VSX

Operands

  • vD
    Target
  • vA
    Src A
  • vB
    Src B