daddq

Decimal Add Quad-Precision

daddq vD, vA, vB

Adds two 128-bit DFP numbers.

Details

The daddq instruction performs a decimal addition operation on two quad-precision operands. It handles various cases such as overflow, normal results, and tiny values, updating the result and status flags accordingly.

Pseudocode Operation

f1 <- DFP_operation(f2, f3)

Programming Note

The daddq instruction is used for adding two quad-precision decimal numbers. Ensure that the operands are correctly aligned to avoid precision errors. Be aware of potential overflow conditions, which will be indicated in the FPSCR register. This operation requires floating-point privilege level access.

Example

daddq vd, va, vb

Encoding

Binary Layout
63
0
vD
6
vA
11
vB
16
2
21
/
31
 
Format X-form
Opcode 0xFC000002
Extension Decimal Floating-Point
Registers Altered FPSCR

Operands

  • vD
    Target
  • vA
    Src A
  • vB
    Src B