neg
Negate
PPC440x5 CPU Core User’s Manual Preliminary
Page 384 of 589
instrset.fm.
September 12, 2002
neg
Negate
(RT) ←¬(RA) + 1
The twos complement of the contents of register RA are placed into register RT.
Registers Altered
•RT
• CR[CR0] if Rc contains 1
• XER[SO, OV] if OE=1
Invalid Instruction Forms
• Reserved fields
neg RT, RA OE=0, Rc=0
neg. RT, RA OE=0, Rc=1
nego RT, RA OE=1, Rc=0
nego. RT, RA OE=1, Rc=1
31 RT RA OE 104 Rc
0 6 11 16 21 22 31