beautypg.com

Texas Instruments TMS320C67X/C67X+ DSP User Manual

Page 156

background image

CMPLT

Compare for Less Than, Signed Integers

3-96

Instruction Set

SPRU733

Description

Performs a signed comparison of src1 to src2. If src1 is less than src2, then
1 is written to dst; otherwise, 0 is written to dst.

Note:
The CMPLT instruction allows using a 5-bit constant as src1. If src2 is a 5-bit

constant, as in

CMPLT .L1 A4, 5, A0

Then to implement this operation, the assembler converts this instruction to

CMPGT .L1 5, A4, A0

These two instructions are equivalent, with the second instruction using the

conventional operand types for src1 and src2.
Similarly, the CMPLT instruction allows a cross path operand to be used as

src2. If src1 is a cross path operand as in

CMPLT .L1x B4, A5, A0

Then to implement this operation, the assembler converts this instruction to

CMPGT .L1x A5, B4, A0

In both of these operations the listing file (.lst) will have the first implementa-

tion, and the second implementation will appear in the debugger.

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

See Also

CMPEQ, CMPGT, CMPLTDP, CMPLTSP, CMPLTU

Pipeline