xsmincqp
VSX Scalar Minimum Type-C Quad-Precision
xsmincqp vD, vA, vB
Compares two quad-precision floating-point values and selects the minimum value.
Encoding
Binary Layout
63
0:5
FRT
6:10
FRA
11:15
FRB
16:20
710
21:30
Rc
31
Operands
-
vD
Target -
vA
Src A -
vB
Src B -
VRT
Target Vector Register -
VRA
Source Vector Register -
VRB
Source Vector Register
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
Compares two quad-precision floating-point values in VSRs and returns the minimum, using Type-C comparison rules (NaN handling as per VSX specification). Results are written to the VSR specified by XT. No exception or condition register fields are altered unless Rc=1 for VSX comparisons.
Operation
fD ← min(fA, fB) using Type-C comparison
if fA is NaN or fB is NaN then
fD ← QNaN
end if
Programming Note
xsmincqp can be used to implement the C/C++ conditional operator (x<y)?x:y for quad-precision arguments.