Negate

 

NEG

 

 

 

 

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 15511 1

Opcode map field used...

For operand type...

Unit

 

 

 

src2

xsint

.S1, .S2

dst

sint

 

 

 

 

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 155171 1

Opcode map field used...

For operand type...

Unit

Opfield

 

 

 

 

src2

xsint

.L1, .L2

000 0110

dst

sint

 

 

src2

slong

.L1, .L2

010 0100

dst

slong

 

 

 

 

 

 

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

SPRU733

Instruction Set

3-189

Page 249
Image 249
Texas Instruments TMS320C67X/C67X+ DSP manual Negate