Systems and methods for performing vector max/min instructions that also generate index values
AssigneeIntel Corporation
InventorsSunny L. Gogar, Rama Kishan V. Malladi, Elmoustapha Ould-Ahmed-Vall, Christopher J. Hughes
Life of this patent
Estimating the term…
Abstract
Disclosed embodiments relate to systems and methods for performing instructions structured to compute a min/max value of a vector. In one example, a processor executes a decoded single instruction to determine on a per data element position of the identified first and second operands a maximum or minimum, store the determined maximum or minimums in corresponding data element positions of the identified first operand, and determine and store, in each data element position of the identified third operand, an indication of where the maximum or minimum came from.
Claims17
A processor comprising:
- fetch circuitry to fetch a single instruction, a format of the single instruction including a first field to identify a first operand, a second field to identify a second operand, a third field to identify a third operand, and an opcode to indicate that execution circuitry is to determine on a per data element position of the identified first and second operands a maximum value, store the determined maximum values in corresponding data element positions of the identified first operand, and determine and store, in each data element position of the identified third operand, an indication of where the maximum value came from, and a fourth field to identify a iteration number of a sequence of operations, wherein the first operand is the same throughout the sequence of operations;
- decode circuitry to decode the fetched single instruction;
- and
- execution circuitry to execute the decoded single instruction to determine on a per data element position of the identified first and second operands a maximum value, store the determined maximum values in corresponding data element positions of the identified first operand, and determine and store, in each data element position of the identified third operand, an indication of where the maximum value came from.
A method comprising:
- decoding a single instruction, a format of the single instruction including a first field to identify a first operand, a second field to identify a second operand, a third field to identify a third operand, and an opcode to indicate that execution circuitry is to determine on a per data element position of the identified first and second operands a maximum value, store the determined maximum values in corresponding data element positions of the identified first operand, and determine and store, in each data element position of the identified third operand, an indication of where the maximum value came from, and a fourth field to identify a iteration number of a sequence of operations, wherein the first operand is the same throughout the sequence of operations;
- executing the decoded single instruction to determine on a per data element position of the identified first and second operands a maximum value, store the determined maximum values in corresponding data element positions of the identified first operand, and determine and store, in each data element position of the identified third operand, an indication of where the maximum value came from.
A non-transitory machine readable medium having stored thereon an occurrence of a single instruction, wherein in response to the occurrence of the single instruction a processor is to perform a method comprising:
- decoding the single instruction, a format of the single instruction including a first field to identify a first operand, a second field to identify a second operand, a third field to identify a third operand, and an opcode to indicate that execution circuitry is to determine on a per data element position of the identified first and second operands a maximum value, store the determined maximum values in corresponding data element positions of the identified first operand, and determine and store, in each data element position of the identified third operand, an indication of where the maximum value came from, and a fourth field to identify a iteration number of a sequence of operations, wherein the first operand is the same throughout the sequence of operations;
- executing the decoded single instruction to determine on a per data element position of the identified first and second operands a maximum value, store the determined maximum values in corresponding data element positions of the identified first operand, and determine and store, in each data element position of the identified third operand, an indication of where the maximum value came from.
Dependencies are inferred from the claim text.