beautypg.com

Cmpgt – Texas Instruments TMS320C67X/C67X+ DSP User Manual

Page 148

background image

CMPGT

Compare for Greater Than, Signed Integers

3-88

Instruction Set

SPRU733

Example 1

CMPGT .L1X A1,B1,A2

Before instruction

1 cycle after instruction

A1 0000 01B6h

438

A1 0000 01B6h

A2 xxxx xxxxh

A2 0000 0000h

false

B1 0000 08BDh

2237

B1 0000 08BDh

Example 2

CMPGT .L1X A1,B1,A2

Before instruction

1 cycle after instruction

A1 FFFF FE91h

−367

A1 FFFF FE91h

A2 xxxx xxxxh

A2 0000 0001h

true

B1 FFFF FDC4h

−572

B1 FFFF FDC4h

Example 3

CMPGT .L1

8,A1,A2

Before instruction

1 cycle after instruction

A1 0000 0023h

35

A1 0000 0023h

A2 xxxx xxxxh

A2 0000 0000h

false

Example 4

CMPGT .L1X A1,B1,A2

Before instruction

1 cycle after instruction

A1 0000 00EBh

235

A1 0000 00EBh

A2 xxxx xxxxh

A2 0000 0000h

false

B1 0000 00EBh

235

B1 0000 00EBh