527
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Double-precision Floating-point Instructions
3
+D, -D, *D, /D
Operation rules
The result of an operation is output as shown below depending on the combination of floating-point
data.
z DOUBLE FLOATING-POINT ADD (+D)
* *: The results could be zero (including underflows), a numeral, +o, or -o.
ER: The Error Flag will be turned ON and the instruction will not be executed.
z DOUBLE FLOATING-POINT SUBTRACT (-D)
* *: The results could be zero (including underflows), a numeral, +o, or -o.
ER: The Error Flag will be turned ON and the instruction will not be executed.
z DOUBLE FLOATING-POINT MULTIPLY (∗D)
* *: The results could be zero (including underflows), a numeral, +o, or -o.
ER: The Error Flag will be turned ON and the instruction will not be executed.
z DOUBLE FLOATING-POINT DIVIDE (/D)
*: The results will be zero for underflows.
* *: The results could be zero (including underflows), a numeral, +o, or -o.
ER: The Error Flag will be turned ON and the instruction will not be executed.
Augend
Addend 0 Numeral +∞ –∞ NaN
0 0 Numeral +∞ –∞
Numeral Numeral ** +∞ –∞
+∞ +∞ +∞ +∞
ER
–∞ –∞ –∞ ER –∞
NaN ER
Minuend
Subtrahend 0 Numeral +∞ –∞ NaN
0 0 Numeral +∞ –∞
Numeral Numeral ** +∞ –∞
+∞ –∞ –∞ ER –∞
–∞ +∞ +∞ +∞
ER
NaN ER
Multiplicand
Multiplier 0 Numeral +∞ –∞ NaN
0 0 0 ER ER
Numeral 0**+/–∞ +/–∞
+∞ ER +/–∞ +∞ –∞
–∞ ER +/–∞ –∞ +∞
NaN ER
Dividend
Divisor 0 Numeral +∞ –∞ NaN
0 ER +/–∞ +∞ –∞
Numeral 0**+/–∞ +/–∞
+∞ 0 * ER ER
–∞ 0 * ER ER
NaN ER