5.9.5. VSLI and VSRI

VSLI (Vector Shift Left and Insert) takes each element in a vector, left shifts them by an immediate value, and inserts the results in the destination vector. Bits shifted out of the left of each element are lost.

VSRI (Vector Shift Right and Insert) takes each element in a vector, right shifts them by an immediate value, and inserts the results in the destination vector. Bits shifted out of the right of each element are lost.

Syntax

Vop{cond}.size {Qd}, Qm, #imm
Vop{cond}.size {Dd}, Dm, #imm

where:

op

must be either SLI or SRI.

cond

is an optional condition code (see Condition codes).

size

must be one of 8, 16, 32, or 64.

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 constant specifying the size of the shift, in the range:

  • 0 to (size - 1) for VSLI

  • 1 to size for VSRI.

Copyright © 2002-2010 ARM. All rights reserved.ARM DUI 0204J
Non-ConfidentialID101213