CMPGT Compare for Greater Than, Signed Integers

Example 1

CMPGT .L1X

A1,B1,A2

 

 

 

Before instruction

 

 

A1

 

 

438

A1

 

0000

01B6h

 

 

 

 

 

 

 

 

 

 

 

A2

xxxx xxxxh

 

A2

 

 

 

 

 

 

 

 

 

 

 

 

 

B1

0000

08BDh

2237

B1

 

 

 

 

 

 

1 cycle after instruction

0000 01B6h

0000 0000h false

0000 08BDh

Example 2

CMPGT .L1X A1,B1,A2

 

 

 

Before instruction

 

 

A1

 

−367

A1

 

FFFF FE91h

 

 

 

 

 

 

 

 

 

 

 

A2

xxxx xxxxh

 

A2

 

 

 

 

 

 

 

 

 

 

 

B1

FFFF FDC4h

−572

B1

 

 

 

 

 

1 cycle after instruction

FFFF FE91h

0000 0001h true FFFF FDC4h

Example 3

CMPGT .L1 8,A1,A2

Before instruction

1 cycle after instruction

A1 0000 0023h

A2 xxxx xxxxh

35A1

A2

0000 0023h

0000 0000h

false

Example 4

CMPGT .L1X

A1,B1,A2

 

 

 

Before instruction

 

 

A1

 

 

235

A1

 

0000

00EBh

 

 

 

 

 

 

 

 

 

 

 

A2

xxxx xxxxh

 

A2

 

 

 

 

 

 

 

 

 

 

 

 

 

B1

0000

00EBh

235

B1

 

 

 

 

 

 

1 cycle after instruction

0000 00EBh

0000 0000h false

0000 00EBh

3-88

Instruction Set

SPRU733

Page 148
Image 148
Texas Instruments TMS320C67X/C67X+ DSP manual Cmpgt .L1X