divde
Divide Doubleword Extended
divde RT, RA, RB
Divides the contents of two registers and updates the condition register.
Details
For divde, the quotient of the contents of register RA (dividend) divided by RB (divisor) is placed into register RT. The operands are interpreted as signed integers.
Pseudocode Operation
if 'divde' then
RT <- (RA) ÷ (RB)
Programming Note
When Rc=1 (dot form), CR0 is updated with the signed comparison of the result against zero (LT, GT, EQ) and the current SO bit from XER.
Example
divde r3, r4, r5
Encoding
Binary Layout
31
0
RT
6
RA
30
RB
31
OE
425
Rc
Operands
-
RT
Target -
RA
Dividend -
RB
Divisor