12.103 VRSHR (by immediate)

Vector Rounding Shift Right by immediate value.

Syntax

VRSHR{cond}.datatype {Qd}, Qm, #imm

VRSHR{cond}.datatype {Dd}, Dm, #imm

where:

cond

is an optional condition code.

datatype

must be one of S8, S16, S32, S64, U8, U16, U32, or U64.

Qd, Qm

are the destination vector and the operand vector, for a quadword operation.

Dd, Dm

are the destination vector and the operand vector, for a doubleword operation.

imm

is the immediate value specifying the size of the shift, in the range 0 to (size(datatype)). The ranges are shown in the following table:

Table 12-15 Available immediate ranges in VRSHR (by immediate)

datatype imm range
S8 or U8 0 to 8
S16 or U16 0 to 16
S32 or U32 0 to 32
S64 or U64 0 to 64

VRSHR with an immediate value of zero is a pseudo-instruction for VORR.

Operation

VRSHR takes each element in a vector, right shifts them by an immediate value, and places the results in the destination vector. The results are rounded.

Non-ConfidentialPDF file icon PDF versionARM DUI0473M
Copyright © 2010-2016 ARM Limited or its affiliates. All rights reserved.