TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07
User Manual (Volume 2) 3-74
CMOV (16-bit)
Conditional Move (16-bit)
Description
CMOVD[a], D[15], const4 (SRC)
CMOVD[a], D[15], D[b] (SRR)
Status Flags
Examples
See Also
CADD, CADDN, CMOVN (16-bit), CSUB, CSUBN, SEL, SELN
If the contents of data register D[15] are not zero, copy the contents of either data register D[b] (instruction format
SRR) or const4 (instruction format SRC) to data register D[a]; otherwise the contents of D[a] is unchanged. The
const4 value is sign-extended.
D[a] = ((D[15] != 0) ? sign_ext(const4) : D[a]);
D[a] = ((D[15] != 0) ? D[b] : D[a]);
C Not set by this instruction.
V Not set by this instruction.
SV Not set by this instruction.
AV Not set by this instruction.
SAV Not set by this instruction.
cmov d1, dl5, d2
cmov d1, dl5, #6