xscmpopoqp
VSX Scalar Compare Ordered Quad-Precision
xscmpopoqp BF, vA, vB
Compares Quad floats (Signaling on NaN).
Encoding
Binary Layout
63
0:5
BF
6:8
/
9:10
vA
11:15
vB
16:20
132
21:30
/
31
Operands
-
BF
CR Field -
vA
Src A -
vB
Src B
Example
xscmpopoqp cr0, va, vb
Related
More in VSX
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
Compares two quad-precision floating-point values in VSRs vA and vB, signaling (raising exception) if either operand is a quiet NaN, and stores the comparison result (Less Than, Greater Than, Equal, or Unordered) in condition register field BF. The FPSCR VE flag may be set on NaN detection.
Operation
if (vA is NaN) or (vB is NaN) then FPSCR[VXSNAN] ← 1
if vA < vB then CR[BF] ← 0b100
else if vA > vB then CR[BF] ← 0b010
else if vA = vB then CR[BF] ← 0b001
else CR[BF] ← 0b011 (unordered)