You copied the Doc URL to your clipboard.

14.119 VSRA (by immediate)

Vector Shift Right by immediate value and Accumulate.

Syntax

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

VSRA{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. The ranges are shown in the following table:

Table 14-24 Available immediate ranges in VSRA (by immediate)

datatypeimm range
S8 or U81 to 8
S16 or U161 to 16
S32 or U321 to 32
S64 or U641 to 64

Operation

VSRA takes each element in a vector, right shifts them by an immediate value, and accumulates the results into the destination vector. The results are truncated.

Related reference

Was this page helpful? Yes No