16.129 ROR (immediate)

Rotate right (immediate).

This instruction is an alias of EXTR.

The equivalent instruction is EXTR Wd, Ws, Ws, #shift.

Syntax

ROR Wd, Ws, #shift ; 32-bit

ROR Xd, Xs, #shift ; 64-bit

Where:

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

Depends on the instruction variant:

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

Operation

Rotate right (immediate) provides the value of the contents of a register rotated by a variable number of bits. The bits that are rotated off the right end are inserted into the vacated bit positions on the left.

Rd = ROR(Rs, 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.