mrrc
Move to Two Registers from Coprocessor (A32)
Reads a coprocessor register into two general-purpose registers.
Pseudocode Operation
if ConditionPassed(cond) then
data64 ← CP64[coproc, opc1, CRm]
Rt ← data64[31:0]
Rt2 ← data64[63:32]
Example
Encoding
Operands
-
coproc
CP Num -
Rt
Dest 1 -
Rt2
Dest 2
Related
More in A32 (System)
Reference
Instruction Forms
| Encoding | Instruction | ISA | Bit pattern | ||
|---|---|---|---|---|---|
| 0x0C500E00 | MRRC{<c>}{<q>} <coproc>, {#}<opc1>, <Rt>, <Rt2>, <CRm> | A32 | cond | 11000 | 1 | 0 | 1 | Rt2 | Rt | 111 | coproc<0> | opc1 | CRm | ||
| 0xEC500E00 | MRRC{<c>}{<q>} <coproc>, {#}<opc1>, <Rt>, <Rt2>, <CRm> | T32 | 111011000 | 1 | 0 | 1 | Rt2 | Rt | 111 | coproc<0> | opc1 | CRm |
Description
Move to two general-purpose registers from System register. This instruction copies the value of a System register to two general-purpose registers. The System register descriptions identify valid encodings for this instruction. Other encodings are undefined. For more information see About the AArch32 System register interface and General behavior of System registers. In an implementation that includes EL2, MRRC accesses to System registers can be trapped to Hyp mode, meaning that an attempt to execute an MRRC instruction in a Non-secure mode other than Hyp mode, that would be permitted in the absence of the Hyp trap controls, generates a Hyp Trap exception. For more information, see EL2 configurable instruction enables, disables, and traps. Because of the range of possible traps to Hyp mode, the MRRC pseudocode does not show these possible traps.
Operation
if ConditionPassed() then
EncodingSpecificOperations();
AArch32.SysRegRead64(cp, ThisInstr(), t, t2);