16.89 LSR (immediate)

Logical Shift Right (immediate).

This instruction is an alias of UBFM.

The equivalent instruction is UBFM Wd, Wn, #shift, #31.

Syntax

LSR Wd, Wn, #shift ; 32-bit

LSR Xd, Xn, #shift ; 64-bit

Where:

Wd
Is the 32-bit name of the general-purpose destination register.
Wn
Is the 32-bit name of the general-purpose source register.
shift

Depends on the instruction variant:

32-bit general registers
Is the shift amount, in the range 0 to 31.
64-bit general registers
Is the shift amount, in the range 0 to 63.
Xd
Is the 64-bit name of the general-purpose destination register.
Xn
Is the 64-bit name of the general-purpose source register.

Operation

Logical Shift Right (immediate) shifts a register value right by an immediate number of bits, shifting in zeros, and writes the result to the destination register.

Rd = LSR(Rn, shift), where R is either W or X.

Non-ConfidentialPDF file icon PDF versionDUI0801J
Copyright © 2014–2017, 2019 Arm Limited or its affiliates. All rights reserved.