Compare for Equality, Signed Integers CMPEQ

Pipeline

 

 

 

 

 

 

Pipeline

E1

 

 

 

 

 

 

Stage

 

 

 

 

 

 

 

 

 

Read

src1, src2

 

 

 

Written

dst

 

 

 

Unit in use

.L

 

 

 

 

 

 

 

Instruction Type

Single-cycle

 

 

 

Delay Slots

0

 

 

 

See Also

CMPEQDP, CMPEQSP, CMPGT, CMPLT

 

Example 1

CMPEQ .L1X

A1,B1,A2

 

 

 

Before instruction

1 cycle after instruction

A1 0000 04B8h

A2 xxxx xxxxh

B1 0000 04B7h

1208

A1

 

A2

1207

B1

0000 04B8h

0000 0000h

0000 04B7h

false

Example 2

CMPEQ .L1 Ch,A1,A2

Before instruction

1 cycle after instruction

A1 0000 000Ch

A2 xxxx xxxxh

12A1

A2

0000 000Ch

0000 0001h

true

Example 3

CMPEQ .L2X A1,B3:B2,B1

 

 

Before instruction

 

A1

 

 

 

F23A 3789h

 

 

 

 

 

 

 

 

 

B1

xxxx xxxxh

 

 

 

 

 

 

 

 

 

B3:B2

0000 00FFh

F23A 3789h

 

 

 

 

 

1 cycle after instruction

 

 

 

 

A1

F23A 3789h

 

 

 

 

 

 

 

 

 

 

B1

0000 0001h

true

 

 

 

 

 

 

 

 

 

B3:B2

0000 00FFh

F23A

3789h

 

 

 

 

SPRU733

Instruction Set

3-81

Page 141
Image 141
Texas Instruments TMS320C67X/C67X+ DSP manual CMPEQDP, CMPEQSP, CMPGT, Cmplt, Pipeline Stage Read