ARM VMRS and VMSR intsructions
Transfer contents between an ARM register and a NEON and VFP system register.
VMRS{cond} Rd, extsysreg
VMSR
{cond} extsysreg, Rd
where:
-
is an optional condition code (see Condition codes).
-
is the NEON and VFP system register, usually
FPSCR
,FPSID
, orFPEXC
(see NEON and VFP system registers). -
is the ARM register.
must not be r15.Rd
It can be
APSR_nzcv
, if
isextsysreg
FPSCR
. In this case, the floating-point status flags are transferred into the corresponding flags in the ARM APSR.
cond
extsysreg
Rd
The VMRS
instruction transfers the contents of extsysreg
into Rd
.
The VMSR
instruction transfers the contents of Rd
into extsysreg
.
Note
These instructions stall the ARM until all current NEON or VFP operations complete.
转载于:https://blog.51cto.com/tigerjibo/1276003