Compare for Greater Than, Unsigned Integers

 

CMPGTU

 

 

 

Compare for Greater Than, Unsigned Integers

 

 

 

 

 

 

CMPGTU

 

 

 

 

 

 

 

 

Syntax

 

 

 

 

CMPGTU (.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 1555171 1

Opcode map field used...

For operand type...

Unit

Opfield

 

 

 

 

src1

uint

.L1, .L2

100 1111

src2

xuint

 

 

uint

 

 

dst

 

 

 

 

 

src1

ucst4

.L1, .L2

100 1110

src2

xuint

 

 

dst

uint

 

 

src1

xuint

.L1, .L2

100 1101

src2

ulong

 

 

dst

uint

 

 

src1

ucst4

.L1, .L2

100 1100

src2

ulong

 

 

dst

uint

 

 

 

 

 

 

Description

Performs an unsigned comparison of src1 to src2. If src1 is greater than src2,

 

then a 1 is written to dst; otherwise, a 0 is written to dst. Only the four LSBs

 

are valid in the 5-bit dst field when the ucst4 operand is used. If the MSB of the

 

dst field is nonzero, the result is invalid.

Execution

if (cond)

{

 

 

if (src1 > src2) 1 dst

 

 

else 0 dst

}

else nop

SPRU733

Instruction Set

3-93

Page 153
Image 153
Texas Instruments TMS320C67X/C67X+ DSP manual Compare for Greater Than, Unsigned Integers, Cmpgtu