Claims
- 1. A method for controlling a vector processor so as to detect whether or not a value of each data signal among a first set of data signals has a specific relation with a value of one of a second set of data signals, the vector processor including an operation unit for performing an arithmetical or logical operation in a pipelined manner on vector data, the method comprising the steps of:
- (a) forming, from the first set of data signals, first vector comprised of groups of data signals, wherein said groups respectively correspond to different data signals of said first set of data signals, and data signals of each group are all equal to one data signal to which said each group corresponds among said data signals belonging to said first set of data signals and a total number of data signals of said each group is equal to a total number of data signals belonging to said second set of data signals;
- (b) forming, from said second set of data signals, second vector data comprised of groups of data signals, wherein data signals in each group are respectively equal to the data signals belonging to the second set of data signals and the number of the groups is equal to the number of data signals belonging to the first set of data signals; and
- (c) controlling the operation of said operation unit so that said operation unit determines whether or not a value of each data signal of the first vector data has a specific relation with a value of a corresponding data signal of the second vector data which is equal in vector element number to said each data signal of the first vector data thereby causing said operation unit to prvide third vector data including result data signals each indicative of a result of the determination for a pair of data signals including a data signal of the first vector data and a corresponding data signal of the second vector data; and
- (d) detecting, in response to the result data signals included in the third vector vector which one of the first set of data signals has a specific relation to one of the second set of data signals.
- 2. A method for controlling a vector processor according to claim 1, wherein the step (d) comprises the steps of:
- (d1) forming fourth vector data which includes as elements thereof a part of the data signals belonging to the first vector data, depending upon whether corresponding result data signals of the third vector data have a predetermined value; and
- (d2) forming fifth vector data which includes as elements thereof a part of the data signals belonging to the second vector data, depending upon whether corresponding result data signals of the third vector data have the predetermined value.
- 3. A method for controlling a vector processor according to claim 1, further comprising the steps of:
- forming the first and second vector data on a main storage of said vector processor and then transferring them to first and second ones of a plurality of vector registers provided in said vector processor wherein the operation by said operation unit is done on the first and second vector data held by the first and second vector registers;
- transferring the third vector data provided by said operation unit to a vector mask register provided in said vector processor; and
- gathering the fourth and fifth vector data on said main storage based upon the third vector data held by the vector mask register.
- 4. A method for controlling a vector processor so as to detect whether a value of each data signal among a first set of data signals has a specific relation with a value of one of a second set of data signals by performing an arithmetic or logical operation on a respective one of data signals belonging to a first set of data signals and a respective one of data signals belonging to a second set of data signals, the vector processor including an operation unit for performing said arithmetic or logical operation in a pipelined manner on vector data, the method comprising the steps of:
- (a) forming, from said first set of data signals, first vector data comprised of groups of data signals, wherein said groups respectively correspond to different data signals of said first set of data signals and data signals of a respective one of the groups are all equal to one data signal to which the one group corresponds among said data signals belonging to said first set and a total number of data signals of a respective group is equal to a total number of data signals of the second set of data signals;
- (b) forming, from said second set of data signals, second vector data comprised of groups of data signals, wherein data signals in each of the groups of the second vector data are respectively equal to said data signals belonging to said second set of data signals and a total number of the groups is equal to a total number of data signals belonging to the first set of data signals; and
- (c) controlling the operation of said operation unit so that said operation unit performs an arithmetical or logical operation on paris of data signals each including a data signal of the first vector data and a corresponding data signal of the second vector data, thereby causing said operation unit to provide third vector data comprising result data signals for detecting whether a pair of data data signals which have received the operation has a specific relation with each other.
Parent Case Info
This is a continuation of application Ser. No. 006,425, filed Jan. 23, 1987, now abandoned.
US Referenced Citations (6)
Number |
Name |
Date |
Kind |
3930231 |
Henrichon, Jr. et al. |
Dec 1975 |
|
4525796 |
Omoda et al. |
Jun 1985 |
|
4589067 |
Porter et al. |
May 1986 |
|
4621324 |
Ushiro et al. |
Nov 1986 |
|
4630192 |
Wassel et al. |
Dec 1986 |
|
4661900 |
Chen et al. |
Apr 1987 |
|
Continuations (1)
|
Number |
Date |
Country |
Parent |
6425 |
Jan 1987 |
|