Adds the contents of a general-purpose register, zero, and the value of the Carry bit in the FIxed-Point Exception Register and places the result in a general-purpose register.
Bits | Value |
---|---|
0-5 | 31 |
6-10 | RT |
11-15 | RA |
16-20 | /// |
21 | OE |
22-30 | 202 |
31 | Rc |
PowerPC | |
---|---|
addze | RT, RA |
addze. | RT, RA |
addzeo | RT, RA |
addzeo. | RT, RA |
POWER family | |
---|---|
aze | RT, RA |
aze. | RT, RA |
azeo | RT, RA |
azeo. | RT, RA |
The addze and aze instructions add the contents of general-purpose register (GPR) RA, the Carry bit, and 0x0000 0000 and place the result into the target GPR RT.
The addze instruction has four syntax forms. Each syntax form has a different effect on Condition Register Field 0 and the Fixed-Point Exception Register.
The aze instruction has four syntax forms. Each syntax form has a different effect on Condition Register Field 0 and the Fixed-Point Exception Register.
Syntax Form | Overflow Exception (OE) | Fixed-Point Exception Register | Record Bit (Rc) | Condition Register Field 0 |
addze | 0 | CA | 0 | None |
addze. | 0 | CA | 1 | LT,GT,EQ,SO |
addzeo | 1 | SO,OV,CA | 0 | None |
addzeo. | 1 | SO,OV,CA | 1 | LT,GT,EQ,SO |
aze | 0 | CA | 0 | None |
aze. | 0 | CA | 1 | LT,GT,EQ,SO |
azeo | 1 | SO,OV,CA | 0 | None |
azeo. | 1 | SO,OV,CA | 1 | LT,GT,EQ,SO |
The four syntax forms of the addze instruction and the four syntax forms of the aze instruction always affect the Carry bit (CA) in the Fixed-Point Exception Register. If the syntax form sets the Overflow Exception (OE) bit to 1, the instruction affects the Summary Overflow (SO) and Overflow (OV) bits in the Fixed-Point Exception Register. If the syntax form sets the Record (Rc) bit to 1, the instruction affects the Less Than (LT) zero, Greater Than (GT) zero, Equal To (EQ) zero, and Summary Overflow (SO) bits in Condition Register Field 0.
RT | Specifies target general-purpose register where result of operation is stored. |
RA | Specifies source general-purpose register for operation. |
# Assume GPR 4 contains 0x7B41 92C0. # Assume the Carry bit is zero. addze 6,4 # GPR 6 now contains 0x7B41 92C0.
# Assume GPR 4 contains 0xEFFF FFFF. # Assume the Carry bit is one. addze. 6,4 # GPR 6 now contains 0xF000 0000.
# Assume GPR 4 contains 0x9000 3000. # Assume the Carry bit is one. addzeo 6,4 # GPR 6 now contains 0x9000 3001.
# Assume GPR 4 contains 0xEFFF FFFF. # Assume the Carry bit is zero. adzeo. 6,4 # GPR 6 now contains 0xEFFF FFFF.
Fixed-Point Arithmetic Instructions .