Claims
- 1. A method for combining, in accordance with a control vector, at least a first input vector and a second input vector to create an output vector, each vector comprising at least first and second vector elements, the method comprising the steps of:
- storing said first input vector;
- storing said second input vector;
- storing said control vector;
- in response to the first vector element of said control vector, storing, as the first vector element of said output vector, a selected one of (1) the first vector element of the first input vector, (2) the second vector element of the first input vector, (3) the first vector element of the second input vector, or (4) the second vector element of the second input vector; and
- in response to the second vector element of said control vector, storing, as the second vector element of said output vector, a selected one of (1) the first vector element of the first input vector, (2) the second vector element of the first input vector, (3) the first vector element of the second input vector, or (4) the second vector element of the second input vector.
- 2. The method of claim 1 wherein the vector elements of said input vectors comprise a set of 2.sup.n input vector elements, and wherein each of said vector elements of said control vector selects one of said 2.sup.n input vector elements.
- 3. The method of claim 1 wherein each of said first and second input vectors comprise 2.sup.n-1 input vector elements, and wherein each of said vector elements of said control vector selects one of said 2.sup.n input vector elements.
- 4. A method for combining in an output vector, vector elements of a first input vector and a second input vector, selected in accordance with a control vector, each vector comprising at least first and second vector elements, the method comprising the steps of:
- storing said first input vector;
- storing said second input vector;
- storing said control vector;
- selecting, in response to each vector element of said stored control vector, a respective one of the vector elements of said stored input vectors; and
- storing each of said selected vector elements as a respective one of the vector elements of said output vector, the output vector being the same size as the first input vector and the second input vector.
- 5. The method of claim 4 wherein the vector elements of said input vectors comprise a set of 2.sup.n input vector elements, and wherein each of said vector elements of said control vector selects one of said 2.sup.n input vector elements.
- 6. The method of claim 4 wherein each of said first and second input vectors comprise 2.sup.n-1 input vector elements, and wherein each of said vector elements of said control vector selects one of said 2.sup.n input vector elements.
- 7. An apparatus for combining, in accordance with a control vector, at least a first input vector and a second input vector to create an output vector, each vector comprising at least first and second vector elements, the apparatus comprising:
- a first vector register for storing said first input vector;
- a second vector register for storing said second input vector;
- a third vector register for storing said control vector;
- a combination network coupled to the first vector register, to the second vector register and to the third vector register for selecting, in response to each vector element stored in said third vector, a respective one of vector elements stored in said first and said second vector registers; and
- a fourth vector register for storing each of said selected vector elements.
- 8. The apparatus of claim 7 wherein the vector elements of said first and second vector registers comprise a set of 2.sup.n input vector elements, and wherein, in response to each of said vector elements of said control vector, the combination network selects one of said 2.sup.n input vector elements.
- 9. The apparatus of claim 7 wherein the vector elements of each of said first and second vector registers comprise 2.sup.n-1 input vector elements, and wherein, in response to each of said vector elements of said control vector, the combination network selects one of said 2.sup.n input vector elements.
CROSS-REFERENCE TO RELATED APPLICATION
This application is related to our co-pending U.S. patent application Ser. No. 09/062,152 entitled "DATA PROCESSING SYSTEM AND METHOD OF GENERATING A CONTROL VECTOR FOR VECTOR LOADING AND ALIGNMENT VIA PERMUTATION WITHIN A VECTOR REGISTER FILE", filed concurrently herewith and assigned to the same assignee herein.
US Referenced Citations (2)
Number |
Name |
Date |
Kind |
5553309 |
Asai et al. |
Sep 1996 |
|
5990821 |
Pflum |
Aug 1998 |
|
Non-Patent Literature Citations (1)
Entry |
Hewlett Packard, "64-bit and Multimedia Extensions in the PA-RISC 2.0 Architecture", Computing Directory Technologies Precision Architecture Document, "MIPS Digital Media Extension", Rev 1.0 C-1 through C40 (1997). |