Subtract Two Signed Integers Without Saturation

 

SUB

 

 

 

 

Subtract Two Signed Integers Without Saturation

 

 

 

 

 

 

SUB

 

 

 

 

 

 

 

 

 

Syntax

 

 

 

 

SUB (.unit) src1, src2, dst

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

or

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SUB (.D1 or .D2) src2, src1, dst

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.unit = .L1, .L2, .S1, .S2

 

 

 

 

 

 

 

 

 

Compatibility

 

 

C62x, C64x, C67x, and C67x+ CPU

 

 

 

 

 

 

 

 

 

Opcode

 

 

 

.L unit

 

 

 

 

 

 

 

 

 

 

 

 

31

29

28

27

23

22

18

17

13

12

11

5

4

3

2

1

0

creg

z

dst

src2

src1

x

op

1

1

0 s p

3 1555171 1

Opcode map field used...

For operand type...

Unit

Opfield

 

 

 

 

src1

sint

.L1, .L2

000 0111

src2

xsint

 

 

dst

sint

 

 

src1

xsint

.L1, .L2

001 0111

src2

sint

 

 

dst

sint

 

 

src1

sint

.L1, .L2

010 0111

src2

xsint

 

 

dst

slong

 

 

src1

xsint

.L1, .L2

011 0111

src2

sint

 

 

dst

slong

 

 

src1

scst5

.L1, .L2

000 0110

src2

xsint

 

 

dst

sint

 

 

src1

scst5

.L1, .L2

010 0100

src2

slong

 

 

dst

slong

 

 

 

 

 

 

SPRU733

Instruction Set

3-249

Page 309
Image 309
Texas Instruments TMS320C67X/C67X+ DSP manual Subtract Two Signed Integers Without Saturation