dxexq
Decimal Extract Exponent Quad-Precision
Extracts exponent from 128-bit DFP.
Details
Extracts the exponent field from a 128-bit decimal floating-point number in vB and stores it as a 64-bit signed integer in vD. For normal numbers, the result is the biased exponent; for special values (zero, infinity, NaN), the result follows the DFP specification. The instruction is part of the Decimal Floating-Point extension.
Pseudocode Operation
vD ← ExponentExtractDFP128(vB)
Programming Note
The dxexq instruction is used to extract the biased exponent from a quad-precision decimal floating-point number. Ensure the source operand is properly aligned, as misalignment can lead to exceptions. This operation requires FPSCR (Floating Point Status and Control Register) to be correctly set for proper rounding modes and exception handling.
Example
Encoding
Operands
-
vD
Target -
vB
Source