6.1 __arm_cdp, __arm_cdp2 Intrinsic Function

Inserts the coprocessor-specific data operation instruction CDP or CDP2. The parameters will be encoded in the instruction and must therefore be constants.

These intrinsic functions are defined according to the Arm C Language Extensions (ACLE).

Suggested Replacement

__builtin_arm_cdp
__builtin_arm_cdp2

Caveats

None.

Examples

Consider migrating IAR code such as:
void __arm_cdp(__cpid coproc, __cpopcw opc1, __cpreg CRd, __cpreg CRn, __cpreg CRm, __cpopc opc2);

void __arm_cdp2(__cpid , __cpopw coprocopc1, __cpreg CRd, __cpreg CRn, __cpreg CRm, __cpopc opc2); 
to MPLAB XC codes similar to:
void __builtin_arm_cdp(__cpid coproc, __cpopcw opc1, __cpreg CRd, __cpreg CRn, __cpreg CRm, __cpopc opc2);

void __builtin_arm_cdp2(__cpid , __cpopw coprocopc1, __cpreg CRd, __cpreg CRn, __cpreg CRm, __cpopc opc2); 

Further Information

None.