16.93 MOV (to or from SP)

Move between register and stack pointer.

This instruction is an alias of ADD (immediate).

The equivalent instruction is ADD Wd|WSP, Wn|WSP, #0.

Syntax

MOV Wd|WSP, Wn|WSP ; 32-bit

MOV Xd|SP, Xn|SP ; 64-bit

Where:

Wd|WSP
Is the 32-bit name of the destination general-purpose register or stack pointer.
Wn|WSP
Is the 32-bit name of the source general-purpose register or stack pointer.
Xd|SP
Is the 64-bit name of the destination general-purpose register or stack pointer.
Xn|SP
Is the 64-bit name of the source general-purpose register or stack pointer.

Operation

Rd = Rn, where R is either W or X.

Non-ConfidentialPDF file icon PDF versionARM 100069_0608_00_en
Copyright © 2014–2017 ARM Limited or its affiliates. All rights reserved.