Skip to main content

IAR Embedded Workbench for Arm 9.70.x

__CDP, __CDP2

In this section:
Syntax
void __CDP(__cpid coproc, __cpopcw opc1, __cpreg CRd, __cpreg CRn,
           __cpreg CRm, __cpopc opc2);
void __CDP2(__cpid coproc, __cpopcw opc1, __cpreg CRd, __cpreg CRn,
            __cpreg CRm, __cpopc opc2);
Parameters

coproc

The coprocessor number 0..15.

opc1, opc2

Coprocessor-specific operation codes.

CRd, CRn, CRm

Coprocessor registers.

Description

Inserts the coprocessor-specific data operation instruction CDP or CDP2.

The parameters will be encoded in the instruction and must therefore be constants.

The intrinsic functions __CDP and __CDP2 require an Armv5 architecture or higher for Arm mode, or Armv6 or higher for Thumb mode.

Note

These intrinsic functions cannot be used in 64-bit mode.

See also

__arm_cdp, __arm_cdp2.

Note

To use intrinsic functions in an application, you must include the header file(s) where they are declared, see Summary of intrinsic functions.