Signed or Unsigned Integer Compare for Less Than
CMPLT(U)
3-57
TMS320C62x/C67x Fixed-Point Instruction Set
Description
This instruction does a signed or unsigned comparison of
src1 to src2. If src1
is less than
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
Example 1
CMPLT .L1
A1,A2,A3
Before instruction
1 cycle after instruction
A1
0000 07E2h
2018
A1
0000 07E2h
A2
0000 0F6Bh
3947
A2
0000 0F6Bh
A3
XXXX XXXXh
A3
0000 0001h
true
Example 2
CMPLT .L1
A1,A2,A3
Before instruction
1 cycle after instruction
A1
FFFF FED6h
–298
A1
FFFF FED6h
A2
0000 000Ch
12
A2
0000 000Ch
A3
XXXX XXXXh
A3
0000 0001h
true
Example 3
CMPLT .L1
9,A1,A2
Before instruction
1 cycle after instruction
A1
0000 0005h
5
A1
0000 0005h
A2
XXXX XXXXh
A2
0000 0000h
false
Pipeline