Back to results
US 2012/0254589 A1Published application
System, apparatus, and method for aligning registers
OwnerJesus Corbal San Adrian, Roger Espasa Sans +4inventors
InventorsJesus Corbal San Adrian, Roger Espasa Sans, Milind Baburao Girkar, Lisa K. Wu, Dennis R. Bradford, Victor W. Lee
Life of this patent
Estimating the term…
Abstract
Embodiments of systems, apparatuses, and methods for performing an align instruction in a computer processor are described. In some embodiments, the execution of an align instruction causes the selective storage of data elements of two concatenated sources to be stored in a destination.
Claims19
A method of performing an align instruction in a computer processor, comprising:
- fetching the align instruction, wherein the align instruction includes a writemask operand, a destination operand, a first source operand, a second source operand, and an offset value;
- decoding the fetched align instruction;
- executing the decoded align instruction by
- concatenating a first plurality of data elements of the first source operand and a second plurality of data elements of the second source operand,
- shifting right the concatenated data elements based on the offset value, and
- determining which of the right shifted, concatenated data elements are to be stored into corresponding position of the destination based on corresponding bits of the writemask;
- and
- storing those data elements of the right shifted, concatenated data elements that have been determined should be stored into the destination at the corresponding position in the destination.
5 more elements
A method, comprising:
- in response to an align instruction that includes a first and second source operand, a destination operand, a writemask operand, and an offset,
- concatenating a first set of data elements of the first source with a second set of data elements of the second source;
- right shifting the concatenated data elements by X data elements, wherein X is an immediate value provided in the align instruction;
- and
- for a first bit position of a writemask, determining if that the first bit position indicates that the corresponding data element of the shifted, concatenated data elements is to be stored in a corresponding location in the destination,
- storing the corresponding data element of the shifted, concatenated data elements is to be stored in a corresponding location in the destination when the first bit position of the writemask indicates that it should be stored, and
- leaving a data element in the corresponding location in the destination alone when the first bit position of the writemask indicates that its corresponding data element should not be stored in the destination.
4 more elements
An apparatus comprising;
- a hardware decoder to decode an align instruction, wherein the align instruction includes a writemask operand, a destination operand, a first source operand, a second source operand, and an offset value;
- execution logic to
- concatenate a first plurality of data elements of the first source operand and a second plurality of data elements of the second source operand,
- shift right the concatenated data elements based on the offset value,
- determining which of the right shifted, concatenated data elements are to be stored into corresponding position of the destination based on corresponding bits of the writemask, and
- store those data elements of the right shifted, concatenated data elements that have been determined should be stored into the destination at the corresponding position in the destination.
3 more elements
Dependencies are inferred from the claim text.