11.21 VMRS

Transfer the contents of a VFP system register to an ARM register.

Syntax

VMRS{cond} Rd, extsysreg
where:
cond
is an optional condition code.
extsysreg
is the VFP system register, usually FPSCR, FPSID, or FPEXC.
Rd
is the ARM register. Rd must not be PC.
It can be APSR_nzcv, if extsysreg is FPSCR. In this case, the floating-point status flags are transferred into the corresponding flags in the ARM APSR.

Operation

The VMRS instruction transfers the contents of extsysreg into Rd.

Note

This instruction stalls the processor until all current VFP operations complete.

Examples

   VMRS    r2,FPCID
   VMRS    APSR_nzcv, FPSCR  ; transfer FP status register to ARM APSR
Related reference
8.11 VFP system registers
10.8 Condition code suffixes
Non-ConfidentialPDF file icon PDF versionARM DUI0379G
Copyright © 2007, 2008, 2011, 2012, 2014, 2015 ARM. All rights reserved.