SUBU Subtract Two Unsigned Integers Without Saturation

 

 

 

 

Subtract Two Unsigned Integers Without Saturation

 

 

 

 

 

 

SUBU

 

 

 

 

 

 

 

 

 

Syntax

 

 

 

 

SUBU (.unit) src1, src2, dst

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.unit = .L1 or .L2

 

 

 

 

 

 

 

 

 

 

 

Compatibility

 

 

C62x, C64x, C67x, and C67x+ CPU

 

 

 

 

 

 

 

 

 

Opcode

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

1

5

5

5

1

7

1

1

 

 

 

 

 

 

 

 

 

 

 

Opcode map field used...

For operand type...

Unit

Opfield

 

 

 

 

 

 

 

 

 

 

 

 

 

src1

uint

 

.L1, .L2

010 1111

 

 

 

 

src2

xuint

 

 

 

 

 

 

 

dst

ulong

 

 

 

 

 

 

 

src1

xuint

 

.L1, .L2

011 1111

 

 

 

 

src2

uint

 

 

 

 

 

 

 

dst

ulong

 

 

 

 

 

 

 

 

 

 

 

 

 

Description Execution

Pipeline

src2 is subtracted from src1. The result is placed in dst.

if (cond)

src1 src2 dst else nop

Pipeline

E1

Stage

 

 

Read

src1, src2

Written

dst

Unit in use

.L

 

 

Instruction Type

Single-cycle

Delay Slots

0

See Also

ADDU, SSUB, SUB, SUBC, SUBDP, SUBSP, SUB2

3-266

Instruction Set

SPRU733

Page 326
Image 326
Texas Instruments TMS320C67X/C67X+ DSP manual Subtract Two Unsigned Integers Without Saturation, Subu