Integer Compare for Equality
CMPEQ
3-51
TMS320C62x/C67x Fixed-Point Instruction Set
Syntax
CMPEQ (.unit)
src1, src2, dst
.unit = .L1 or .L2
Opcode map field used...
For operand type...
Unit
Opfield
src1
src2
dst
sint
xsint
uint
.L1, .L2
1010011
src1
src2
dst
scst5
xsint
uint
.L1, .L2
1010010
src1
src2
dst
xsint
slong
uint
.L1, .L2
1010001
src1
src2
dst
scst5
slong
uint
.L1, .L2
1010000
Opcode
31
29 28 27
23 22
18 17
creg
z
dst
13 12 11
5
4
3
2
1
0
x
op
1
1
0
s
p
3
5
5
5
7
src2
src1/cst
Description
This instruction 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
Pipeline
Stage
E1
Read
src1, src2
Written
dst
Unit in use
.L
Instruction Type
Single-cycle
Delay Slots
0
Pipeline