CMPEQ Compare for Equality, Signed Integers

 

 

 

Compare for Equality, Signed Integers

 

 

 

 

 

 

 

CMPEQ

 

 

 

 

 

 

 

 

 

Syntax

 

 

 

 

CMPEQ (.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

sint

.L1, .L2

101 0011

src2

xsint

 

 

dst

uint

 

 

src1

scst5

.L1, .L2

101 0010

src2

xsint

 

 

dst

uint

 

 

src1

xsint

.L1, .L2

101 0001

src2

slong

 

 

dst

uint

 

 

src1

scst5

.L1, .L2

101 0000

src2

slong

 

 

dst

uint

 

 

 

 

 

 

Description

Compares src1 to src2. If src1 equals src2, then 1 is written to dst; otherwise,

 

0 is written to dst.

Execution

if (cond)

{

 

 

if (src1 == src2) 1 dst

 

 

else 0 dst

}

else nop

3-80

Instruction Set

SPRU733

Page 140
Image 140
Texas Instruments TMS320C67X/C67X+ DSP manual Compare for Equality, Signed Integers, Cmpeq