cdp

Coprocessor Data Processing (A32)

CDP<c> <coproc>, <opc1>, <CRd>, <CRn>, <CRm>, <opc2>

Initiates a coprocessor data processing operation.

Details

Coprocessor Data Processing: initiates a data processing operation in the specified coprocessor using three coprocessor registers and two operation codes. The instruction is conditional based on the condition field and does not modify processor flags. This is an A32 instruction restricted to privileged execution states in systems with a coprocessor.

Pseudocode Operation

if ConditionPassed() then
  Coprocessor[coproc].DataProcessing(opc1, CRd, CRn, CRm, opc2)

Example

CDP p15, 0, c0, c1, c2, 0

Encoding

Binary Layout
cond
1110
opc1
CRn
CRd
coproc
opc2
0
CRm
 
Format Coprocessor
Opcode 0x0E000000
Extension A32 (System)

Operands

  • coproc
    CP Num
  • CRd
    Destination coprocessor register
  • CRn
    First source coprocessor register
  • CRm
    Second source coprocessor register