dfadd
Decimal Floating-Point Add
dfadd DRT,DSRC1,DSRC2
Adds two decimal floating-point numbers.
Details
The dfadd instruction adds the contents of two source registers and places the result in a target register.
Pseudocode Operation
DRT <- DSRC1 + DSRC2
Programming Note
The dfadd instruction is used for adding two decimal floating-point numbers. Ensure that the source registers (DSRC1 and DSRC2) are properly aligned and contain valid decimal floating-point values to avoid exceptions. The result is stored in the target register (DRT). Be aware of the FPSCR register, which may affect rounding modes and exception flags.
Example
dfadd f1, vs2, vs3
Encoding
Binary Layout
18
0
OPCODE
6
RC
31
Operands
-
DRT
Target Decimal Floating-Point Register -
DSRC1
Source Decimal Floating-Point Register -
DSRC2
Source Decimal Floating-Point Register