| |||
| Home > NEON and VFP Programming > NEON shift instructions > 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.
Vop{cond}.size{Qd},Qm, #imm
Vop{cond}.size{Dd},Dm, #imm
where:
opmust be either SLI or SRI.
condis an optional condition code.
sizemust be one of 8, 16, 32,
or 64.
Qd, Qmare the destination vector and the operand vector, for a quadword operation.
Dd, Dmare the destination vector and the operand vector, for a doubleword operation.
immis the immediate value specifying the size of the shift, in the range:
0 to ( -
1) for sizeVSLI
1 to for sizeVSRI.