Program Exceptions:
Operation (if the floating-point feature is not
installed)
Access (fetch, operand 2 ofAU and AW only)
Specification
Exponent Overflow
Significance
Compare
CER Rl,R2
[RR, Short Operands]
o 8 12 15
CE Rl,D2(X2,B2)
[RX, Short Operands]
Resulting Condition Code:
o Operands are equal
1 First operand is low
2 First operand is high
3 -
Program Exceptions:
Operation (if the floating-point feature is not
installed)
Access (fetch, operand 2 of CE and CD only)
Specification
Programming Note
Numbers with zero fractions compare equal even
when they differ in sign or characteristic.
Divide
DER Rl,R2
79I R, I X
2I B2 D2 I [RR, Short Operands 1 [ 3D I R, I R, CDR Rl,R2
[RR, Long Operands]
29
o 8 12 15
CD Rl,D2(X2,B2)
[RX, Long Operands]
o 8 12 15
DE Rl,D2(X2,B2)
[RX, Short Operands]
7D
o 8 12 1620 31
DDR Rl,R2I 69 I R, I x
2I B2 D2 I [RR, Long Operands 1 I 2D I R, I R2
The first operand is compared with the second op
erand, and the condition code is set to indicate the
result.
Comparison is algebraic, taking into account the
sign, fraction, and exponent of each number. An
equality is established by following the rules for nor
malized floating-point subtraction. When the inter
mediate sum, including the guard digit, is zero, the
operands are equal. An exponent inequality is not
decisive for magnitude determination since the frac
tions may have different numbers of leading zeros.
Neither operand is changed as a result of the opera
tion.
An exponent-overflow, exponent-underflow, or
significance exception cannot occur.
The Rl and R2 fields must designate register0, 2,
4, or 6; otherwise, a specification exception is recog
nized.
o 8 12 15"
DD Rl,D2(X2,B2)
[RX, Long Operands]
6D
o 8 12 1620 The first operand (the dividend) is divided by the
second operand (the divisor) and replaced by the
normalized quotient. No remainder is preserved.
31
Floating-point division consists in characteristic
subtraction and fraction division. The operands are
prenormalized, and the difference between the divi
dend and divisor characteristics of the normalized
operands, plus 64, is used as the characteristic of the
intermediate quotient.
All dividend and divisor fraction digits participate
in forming the fraction of the quotient. Postnormal-
Floating-Point Instructions 163
Operation (if the floating-point feature is not
installed)
Access (fetch, operand 2 of
Specification
Exponent Overflow
Significance
Compare
CER Rl,R2
[RR, Short Operands]
o 8 12 15
CE Rl,D2(X2,B2)
[RX, Short Operands]
Resulting Condition Code:
o Operands are equal
1 First operand is low
2 First operand is high
3 -
Program Exceptions:
Operation (if the floating-point feature is not
installed)
Access (fetch, operand 2 of CE and CD only)
Specification
Programming Note
Numbers with zero fractions compare equal even
when they differ in sign or characteristic.
Divide
DER Rl,R2
79
2
[RR, Long Operands]
29
o 8 12 15
CD Rl,D2(X2,B2)
[RX, Long Operands]
o 8 12 15
DE Rl,D2(X2,B2)
[RX, Short Operands]
7D
o 8 12 16
DDR Rl,R2
2
The first operand is compared with the second op
erand, and the condition code is set to indicate the
result.
Comparison is algebraic, taking into account the
sign, fraction, and exponent of each number. An
equality is established by following the rules for nor
malized floating-point subtraction. When the inter
mediate sum, including the guard digit, is zero, the
operands are equal. An exponent inequality is not
decisive for magnitude determination since the frac
tions may have different numbers of leading zeros.
Neither operand is changed as a result of the opera
tion.
An exponent-overflow, exponent-underflow, or
significance exception cannot occur.
The Rl and R2 fields must designate register
4, or 6; otherwise, a specification exception is recog
nized.
o 8 12 15"
DD Rl,D2(X2,B2)
[RX, Long Operands]
6D
o 8 12 16
second operand (the divisor) and replaced by the
normalized quotient. No remainder is preserved.
31
Floating-point division consists in characteristic
subtraction and fraction division. The operands are
prenormalized, and the difference between the divi
dend and divisor characteristics of the normalized
operands, plus 64, is used as the characteristic of the
intermediate quotient.
All dividend and divisor fraction digits participate
in forming the fraction of the quotient. Postnormal-
Floating-Point Instructions 163