| |||
| Home > NEON and VFP Programming > Instructions shared by NEON and VFP > VMRS and VMSR | |||
Transfer contents between an ARM register and a NEON and VFP system register.
VMRS{cond} Rd, extsysreg
VMSR{cond}extsysreg,Rd
where:
condis an optional condition code.
extsysregis the NEON and VFP system register, usually FPSCR, FPSID,
or FPEXC.
Rdis the ARM register. must
not be PC.Rd
It can be APSR_nzcv, if is extsysregFPSCR.
In this case, the floating-point status flags are transferred into
the corresponding flags in the ARM APSR.
The VMRS instruction transfers the contents of into extsysreg. Rd
The VMSR instruction transfers the contents of into Rd.extsysreg
These instructions stall the ARM until all current NEON or VFP operations complete.
VMRS r2,FPCID
VMRS APSR_nzcv, FPSCR ; transfer FP status register to ARM APSR
VMSR FPSCR, r4
Using the Assembler: