Instruction Overview
The Dreg version of the Negate (Two's-Complement) instruction is
offered with or without saturation. The only case where the nonsaturating
Negate would overflow is when the input value is 0x8000 0000. The satu-
rating version returns 0x7FFF FFFF; the nonsaturating version returns
0x8000 0000.
In the syntax, where
values.
•
saturate the result
(S)
•
no saturation
(NS)
See
"Saturation" on page 1-17
Flags Affected
This instruction affects the flags as follows.
•
is set if result is zero; cleared if nonzero.
AZ
•
is set if result is negative; cleared if non-negative.
AN
•
is set if result overflows or saturates and the
V
cleared if no overflow or saturation.
•
is set if
VS
•
is set if result saturates and the
AV0
saturation.
•
is set if
AV0S
•
is set if result saturates and the
AV1
saturation.
•
is set if
AV1S
15-74
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
appears, substitute one of the following
sat_flag
for a description of saturation behavior.
is set; unaffected otherwise.
V
is set; unaffected otherwise.
AV0
is set; unaffected otherwise.
AV1
dest_reg
is
; cleared if no
dest_reg
A0
is
; cleared if no
dest_reg
A1
is a
;
Dreg
Need help?
Do you have a question about the ADSP-BF53x Blackfin and is the answer not in the manual?