Back to results
US 8,527,742 B2Granted
Processing vectors using wrapping add and subtract instructions in the macroscalar architecture
AssigneeApple Inc.
InventorJeffry E. Gonion
Life of this patent
Estimating the term…
Abstract
Embodiments of a system and a method in which a processor may execute instructions that cause the processor to receive an input vector and a control vector are disclosed. The executed instructions may also cause the processor to perform a sum or difference operation on another input vector dependent upon the input vector and the control vector.
Claims17
A method, comprising:
- performing, by a processor:
- receiving an input vector, a basis vector, a selection vector, and a control vector;
- selecting a basis value from the basis vector dependent upon the selection vector;
- and
- generating a result vector dependent upon the selected basis value;
- wherein each of the input vector, the basis vector, the selection vector, the control vector, and the result vector includes a respective plurality of elements that occupy N ordered element positions, wherein the N ordered element positions include an initial element position and a last element position;
- wherein N is an integer greater than one;
- wherein for each given one of the N ordered element positions, said generating comprises performing a sum or difference operation across selected elements of the input vector dependent upon the control vector and the basis value, such that for a particular one of the N ordered element positions, performing the sum or difference operation for the particular element position is dependent upon one or more element positions prior to the particular element position.
5 more elements
A system, comprising:
- one or more memories that, during operation of the system, store instructions;
- and
- one or more processors that, during operation of the system, retrieve one or more instructions from the one or more memories and execute the one or more instructions to cause the system to perform operations comprising:
- receiving an input vector;
- receiving a basis vector;
- receiving a selection vector;
- receiving a control vector;
- selecting a basis value from the basis vector dependent upon the selection vector;
- and
- generating a result vector dependent upon the selected basis value;
- wherein each of the input vector, the control vector, the basis vector, the selection vector, and the result vector includes a respective plurality of elements that occupy N ordered element positions, wherein the N ordered element positions include an initial element position and a last element position;
- wherein N is an integer greater than one
- wherein generating the result vector comprises performing a sum or difference operation across selected elements of the input vector dependent upon the control vector and the basis value, such that for a particular one of the N ordered element positions, performing the sum or difference operation for the particular element position is dependent upon one or more element positions prior to the particular element position.
10 more elements
A processor, comprising:
- one or more processor cores, wherein a given one of the one or more processor cores is configured to:
- receive an input vector, a selection vector, a basis vector, and a control vector;
- select a basis value from the basis vector dependent upon the selection vector;
- and
- generate a result vector dependent upon the selected basis value;
- wherein each of the input vector, the selection vector, the basis vector, the control vector, and the result vector includes a respective plurality of elements that occupy N ordered element positions, wherein the N ordered element positions include an initial element position and a last element position;
- wherein N is an integer greater than one
- wherein to generate the result vector, the given processor core is further configured to perform a sum or difference operation across selected elements of the input vector dependent upon the control vector and the basis value, such that to generate an element of the result vector at a particular one of the N ordered element positions of the result vector, the given processor core is configured to perform the sum or difference operation for the particular element position dependent upon one or more element positions prior to the particular element position.
5 more elements
A method, comprising:
- performing, by one or more processors:
- receiving a basis vector, an operand vector, a selection vector, and a control vector;
- selecting a basis value from the basis vector at a last element position in the basis vector responsive to a determination that an initial active element is in an initial element position of the selection vector;
- and
- generating a result vector dependent upon the selected basis value;
- wherein each of the basis vector, the operand vector, the selection vector, the control vector, and the result vector includes a respective plurality of elements that occupy N ordered element positions, wherein the N ordered element positions include an initial element position and a last element position;
- wherein N is an integer greater than one
- wherein for each given one of the N ordered element positions, said generating comprises performing a sum or difference operation across selected elements of the operand vector dependent upon the control vector and the selection vector.
5 more elements
A system, comprising:
- one or more memories that, during operation of the system, store instructions;
- and
- one or more processors that, during operation of the system, retrieve one or more instructions from the one or more memories and execute the one or more instructions to cause the system to perform operations comprising:
- receiving a basis vector, an operand vector, a selection vector, and a control vector;
- generating a result vector;
- wherein each of the basis vector, the control vector, the operand vector, the selection vector and the result vector includes a respective plurality of elements that occupy N ordered element positions, wherein the N ordered element positions include an initial element position and a last element position;
- wherein N is an integer greater than one;
- selecting a basis value from the last element position of the basis vector responsive to a determination that an initial active element of the selection vector is in the initial element position of the selection vector;
- wherein generating the result vector comprises performing a sum or difference operation across selected elements of the operand vector dependent upon the control vector and the basis value.
6 more elements
Dependencies are inferred from the claim text.