CMPGTU Compare for Greater Than, Unsigned Integers

 

Pipeline

 

 

 

 

 

 

Pipeline

E1

 

 

 

 

 

 

Stage

 

 

 

 

 

 

 

 

 

Read

src1, src2

 

 

 

Written

dst

 

 

 

Unit in use

.L

 

 

 

 

 

 

 

Instruction Type

Single-cycle

 

 

 

Delay Slots

0

 

 

 

See Also

CMPGT, CMPGTDP, CMPGTSP, CMPLTU

 

Example 1

CMPGTU .L1

A1,A2,A3

 

 

 

Before instruction

1 cycle after instruction

A1 0000 0128h

A2 FFFF FFDEh

A3 xxxx xxxxh

296

A1

0000

0128h

4294967262

 

 

A2

FFFF FFDEh

 

 

 

 

 

A3

0000

0000h

 

 

 

 

false

Unsigned 32-bit integer

Example 2

CMPGTU .L1 0Ah,A1,A2

 

 

 

 

 

 

Before instruction

 

1 cycle after instruction

 

A1

 

5

 

 

 

 

 

0000 0005h

A1

0000

0005h

 

 

 

 

 

 

 

 

 

 

A2

xxxx xxxxh

 

A2

0000

0001h

true

 

 

 

 

 

 

 

 

Unsigned 32-bit integer

Example 3

CMPGTU .L1 0Eh,A3:A2,A4

 

Before instruction

A3:A2

 

 

0000 0000h

0000 000Ah

 

 

 

 

 

 

A4

xxxx xxxxh

 

 

 

 

Unsigned 40-bit (long) integer

 

 

1 cycle after instruction

10

 

 

 

A3:A2

0000 0000h

0000 000Ah

 

 

 

 

 

A4

0000 0001h

true

 

 

 

 

3-94

Instruction Set

SPRU733

Page 154
Image 154
Texas Instruments TMS320C67X/C67X+ DSP manual CMPGT, CMPGTDP, CMPGTSP, Cmpltu, Before instruction