Patent ID: 8407456

Claim:
A processing method for rotating elements of a pair of registers, comprising: identifying at least one first register with M bits, the first register being a vector register; identifying at least one second register with N bits, the second register being a scalar register; shifting K bits, where K is less than N, from the second register into the first register, wherein the K bits are shifted according to at least one of: (1) executing a left shift comprising: reading N−K bits starting at bit position K of the first register, comprising selected contents of the first register, writing the bits read into bit positions of the first register starting at bit position 0 , reading the K bits from the second register, and writing the K bits read from the second register into bit positions of the first register starting at bit position N−K, or (2) executing a right shift comprising: reading N−K bits starting at bit position 0 of the first register, comprising selected contents of the first register, writing the bits read into bit positions of the first register starting at bit position K, reading the K bits from the second register, and writing the K bits read from the second register into bit positions of the first register starting at bit position 0 .