Texas Instruments TMS320C67X/C67X+ DSP Uživatelský manuál Strana 147

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 465
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 146
Compare for Greater Than, Signed Integers CMPGT
3-87 Instruction SetSPRU733
Description Performs a signed comparison of src1 to src2. If src1 is greater than src2, then
a 1 is written to dst; otherwise, a 0 is written to dst.
Note:
The CMPGT instruction allows using a 5-bit constant as src1. If src2 is a 5-bit
constant, as in
CMPGT .L1 A4, 5, A0
Then to implement this operation, the assembler converts this instruction to
CMPLT .L1 5, A4, A0
These two instructions are equivalent, with the second instruction using the
conventional operand types for src1 and src2.
Similarly, the CMPGT instruction allows a cross path operand to be used as
src2. If src1 is a cross path operand as in
CMPGT .L1x B4, A5, A0
Then to implement this operation the assembler converts this instruction to
CMPLT .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, CMPGTDP, CMPGTSP, CMPGTU, CMPLT
Pipeline
Zobrazit stránku 146
1 2 ... 142 143 144 145 146 147 148 149 150 151 152 ... 464 465

Komentáře k této Příručce

Žádné komentáře