Method and software for partitioned group element selection operation
First Claim
Patent Images
1. A method of processing data in a single programmable processor, the method comprising:
- decoding a single instruction for selectively arranging data, specifying a data selection operand and a first and a second register each having a register width, the single instruction independently specifying the first register and the second register, the first and second registers providing a plurality of data elements each having an elemental width smaller than the register width, the data selection operand comprising a plurality of fields each selecting any one of the plurality of data elements and each field having a value not restricted by the other fields included in the data selection operand; and
providing in parallel the data elements selected by the fields to respective predetermined positions in a catenated result, wherein the predetermined positions are in the same order as the fields of the data selection operand.
0 Assignments
0 Petitions
Accused Products
Abstract
A system and software for improving the performance of processors by incorporating an execution unit operable to decode and execute single instructions specifying a data selection operand and a first and a second register providing a plurality of data elements, the data selection operand comprising a plurality of fields each selecting one of the plurality of data elements, the execution unit operable to provide the data element selected by each field of the data selection operand to a predetermined position in a catenated result.
-
Citations
41 Claims
-
1. A method of processing data in a single programmable processor, the method comprising:
-
decoding a single instruction for selectively arranging data, specifying a data selection operand and a first and a second register each having a register width, the single instruction independently specifying the first register and the second register, the first and second registers providing a plurality of data elements each having an elemental width smaller than the register width, the data selection operand comprising a plurality of fields each selecting any one of the plurality of data elements and each field having a value not restricted by the other fields included in the data selection operand; and providing in parallel the data elements selected by the fields to respective predetermined positions in a catenated result, wherein the predetermined positions are in the same order as the fields of the data selection operand. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A computer-readable storage medium:
-
having instructions that instruct a computer system to perform operations, at least some of the instructions including a group element selection instruction for selectively arranging data in a single programmable processor, the group element selection instruction capable of instructing a computer to perform operations comprising; decoding the group element selection instruction specifying a data selection operand and a first and a second register each having a register width, the group element selection instruction independently specifying the first register and the second register, the first and second registers providing a plurality of data elements each having an elemental width smaller than the register width, the data selection operand comprising a plurality of fields each selecting any one of the plurality of data elements and each field having a value not restricted by the other fields included in the data selection operand; and providing in parallel the data elements selected by the fields to respective predetermined positions in a catenated result, wherein the predetermined positions are in the same order as the fields of the data selection operand. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
-
-
25. A method of processing data in a single programmable processor, the method comprising:
-
decoding a single instruction specifying a plurality of registers each having a register width, the plurality of registers independently specified by the single instruction and storing a plurality of data elements each having an elemental width smaller than the register width, an index register storing an index vector comprising a plurality of indices stored in partitioned fields of the index register and a destination register; wherein each index in the index vector comprises a sufficient number of bits to represent a range of possible index values, the range of possible index values including a different index value for each of the plurality of data elements stored in the plurality of registers, allowing the index to select any data element from the plurality of data elements stored in the plurality of registers; wherein each index in the index vector has a value not restricted by the other indices in the index vector; and providing in parallel the data elements selected by the indices to respective predetermined positions in the destination register, wherein the predetermined positions are in the same order as the indices stored in the partitioned fields of the index register. - View Dependent Claims (26, 27, 28, 29, 30)
-
-
31. A method of processing data in a single programmable processor, the method comprising:
-
decoding a single instruction specifying a first register storing a first plurality of data elements, a second register storing a second plurality of data elements, an index register storing an index vector comprising a plurality of indices stored in partitioned fields of the index register and a destination register; wherein the single instruction independently specifies the first register and the second register; wherein each of the first and second registers has a register width, and each of the first and second plurality of data elements has an elemental width smaller than the register width; wherein each index in the index vector comprises a sufficient number of bits to represent a range of possible index values, the range of possible index values including a different index value for each of the first and second pluralities of data elements stored in the first and second pluralities of registers, allowing the index to select any data element from the first and second pluralities of data elements stored in the first and second pluralities of registers; wherein each index in the index vector has a value not restricted by the other indices in the index vector; and providing in parallel data elements from the first and second pluralities of data elements selected by the indices to respective predetermined positions in the destination register, wherein the predetermined positions are in the same order as the indices stored in the partitioned fields of the index register, wherein the predetermined positions are contiguous blocks of bits that take up an entire width of the destination register. - View Dependent Claims (32)
-
-
33. A computer-readable storage medium having stored therein a plurality of instructions that cause a single computer processor having registers to perform operations on data elements stored in registers within the processor, the plurality of instructions comprising:
-
an instruction specifying a plurality of registers each having a register width, the plurality of registers independently specified by the instruction and storing a plurality of data elements each having an elemental width smaller than the register width, an index register storing an index vector comprising a plurality of indices stored in partitioned fields of the index register and a destination register; wherein each index in the index vector comprises a sufficient number of bits to represent a range of possible index values, the range of possible index values including a different index value for each of the plurality of data elements stored in the plurality of registers, allowing the index to select any data element from the plurality of data elements stored in the plurality of registers; wherein each index in the index vector has a value not restricted by the other indices in the index vector; and wherein the instruction causes the computer processor to provide in parallel the data elements selected by the indices to respective predetermined positions in the destination register, wherein the predetermined positions are in the same order as the indices stored in the partitioned fields of the index register. - View Dependent Claims (34, 35, 36, 37, 38, 39)
-
-
40. A computer-readable medium storage having stored therein a plurality of instructions that cause a single computer processor having registers to perform operations on data elements stored in registers within the processor, the plurality of instructions comprising:
-
an instruction specifying a first register storing a first plurality of data elements, a second register storing a second plurality of data elements, an index register storing an index vector comprising a plurality of indices stored in partitioned fields of the index register and a destination register; wherein the instruction independently specifies the first register and the second register; wherein each of the first and second registers has a register width, and each of the first and second plurality of data elements has an elemental width smaller than the register width; wherein each index in the index vector comprises a sufficient number of bits to represent a range of possible index values, the range of possible index values including a different index value for each of the first and second pluralities of data elements stored in the first and second pluralities of registers, allowing the index to select any data element from the first and second pluralities of data elements stored in the first and second pluralities of registers; wherein each index in the index vector has a value not restricted by the other indices in the index vector; and wherein the instruction causes the computer processor to provide in parallel data elements from the first and second pluralities of data elements selected by the indices to respective predetermined positions in the destination register, wherein the predetermined positions are in the same order as the indices stored in the partitioned fields of the index register, wherein the predetermined positions are contiguous blocks of bits that take up an entire width of the destination register. - View Dependent Claims (41)
-
Specification