Negate the value in a register.
is an optional condition code.
is the destination register.
is the register containing the value that is subtracted from zero.
NEG pseudo-instruction negates
the value in one register and stores the result in a second register.
The 32-bit encoding of this pseudo-instruction is available in A32 and T32.
There is no 16-bit encoding of this pseudo-instruction available T32.
In A32 instructions, using SP or PC for
is deprecated. In T32 instructions, you cannot use
SP or PC for
This pseudo-instruction updates the condition flags, based on the result.