You copied the Doc URL to your clipboard.

LDRSW (immediate)

Load Register Signed Word (immediate).

Syntax

LDRSW Xt, [Xn|SP], #simm ; Post-index general registers

LDRSW Xt, [Xn|SP, #simm]! ; Pre-index general registers

LDRSW Xt, [Xn|SP{, #pimm}] ; Unsigned offset general registers

Where:

simm
Is the signed immediate byte offset, in the range -256 to 255.
pimm
Is the optional positive immediate byte offset, a multiple of 4 in the range 0 to 16380, defaulting to 0.
Xt
Is the 64-bit name of the general-purpose register to be transferred.
Xn|SP
Is the 64-bit name of the general-purpose base register or stack pointer.

Usage

Load Register Signed Word (immediate) loads a word from memory, sign-extends it to 64 bits, and writes the result to a register. The address that is used for the load is calculated from a base register and an immediate offset. For information about memory accesses, see Load/Store addressing modes in the Arm® Architecture Reference Manual Arm®v8, for Arm®v8‑A architecture profile.

Note

For information about the constrained unpredictable behavior of this instruction, see Architectural Constraints on UNPREDICTABLE behaviors in the Arm® Architecture Reference Manual Arm®v8, for Arm®v8‑A architecture profile, and particularly LDRSW (immediate).
Was this page helpful? Yes No