You copied the Doc URL to your clipboard.
ASR (immediate)
Arithmetic Shift Right (immediate).
This instruction is an alias of SBFM
.
The equivalent instruction is SBFM
.Wd
, Wn
, #shift
, #31
Syntax
ASR
Wd
, Wn
, #shift
; 32-bit
ASR
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
Arithmetic Shift Right (immediate) shifts a register value right by an immediate number of bits, shifting in copies of the sign bit in the upper bits and zeros in the lower bits, and writes the result to the destination register.
, where R
d = ASR(R
n, shift
)
is either R
W
or X
.