Negate
NEG
3-189
Instruction Set
SPRU733
Negate
NEG
Syntax
NEG
(.unit)
src2, dst
.unit = .L1, .L2, .S1, .S2
Compatibility
C62x, C64x, C67x, and C67x+ CPU
Opcode
.S unit
31
29
28
27
23
22
18
17
13
12
11
6
5
4
3
2
1
0
creg
z
dst
src2
0 0 0 0 0 x 0 1 0 1 1 0 1 0 0 0
s p
3
1
5
5
1
1
1
Opcode map field used... For operand type...
Unit
src
2
dst
xsint
sint
.S1, .S2
Opcode
.L unit
31
29
28
27
23
22
18
17
13
12
11
5
4
3
2
1
0
creg
z
dst
src2
0 0 0 0 0 x
op
1 1 0
s p
3
1
5
5
1
7
1
1
Opcode map field used... For operand type...
Unit
Opfield
src
2
dst
xsint
sint
.L1, .L2
000 0110
src
2
dst
slong
slong
.L1, .L2
010 0100
Description
The
NEG
pseudo-operation negates
src2
and places the result in
dst
. The
assembler uses
SUB
(.unit) 0,
src2,
dst
to perform this operation.
Execution
if (cond) 0
−
s
src2
→
dst
else nop
Instruction Type
Single-cycle
Delay Slots
0