Claims
- 1. A computer-implemented method comprising:
receiving a packed shift control signal of a first format type having one of a plurality of lengths, identifying a first packed shift operation and indicating a first shift count source; responsive to the packed shift control signal, accessing one or more of a set of control signals of a second format type; and responsive to said one or more of the set of control signals of the second format type, accessing a first packed data having a set of data elements, shifting the first packed data by a first number of positions according to the first packed shift operation and the first shift count source, generating a first replacement data for one of the first number of positions, and producing a shifted first packed data comprising the first replacement data.
- 2. The computer-implemented method of claim 1 wherein the positions of the first number of positions are bit positions.
- 3. The computer-implemented method of claim 2 wherein the first format type comprises three or more bytes, a third byte of the three or more bytes permitting a three-bit source-destination address.
- 4. The computer-implemented method of claim 3 wherein the third byte of the three or more bytes is further permitting a three-bit shift count source address to indicate a memory base address;
- 5. The computer-implemented method of claim 4 wherein the third byte of the three or more bytes is permitting the three-bit shift count source address to also indicate a memory index address.
- 6. The computer-implemented method of claim 3 wherein the third byte of the three or more bytes is further permitting a three-bit operation code extension to indicate that the first packed shift operation is a packed shift immediate operation.
- 7. The computer-implemented method of claim 1 wherein the first format type comprises four or more bytes, a fourth byte of the four or more bytes permitting a three-bit source-destination address.
- 8. The computer-implemented method of claim 7 wherein a first byte of the four or more bytes indicates that the storage location addressed by the three-bit source-destination address holds a packed data having 128 bits.
- 9. The computer-implemented method of claim 8 wherein the packed shift control signal format comprises a second byte and a third byte in addition to the first byte permitting an operation code to specify a packed shift operation to perform an arithmetic right shift of word elements, doubleword elements or quadword elements from the first packed data.
- 10. The computer-implemented method of claim 8 wherein the packed shift control signal format comprises a second byte and a third byte in addition to the first byte permitting an operation code to specify a packed shift operation to perform a logical shift of word elements, doubleword elements or quadword elements from the first packed data.
- 11. The computer-implemented method of claim 10 wherein the fourth byte of the five or more bytes is further permitting a three-bit operation code extension to specify a packed shift operation to perform a logical shift of double quadword elements from the first packed data.
- 12. The computer-implemented method of claim 7 wherein the fourth byte of the four or more bytes is further permitting a three-bit operation code extension to indicate that the first packed shift operation is a packed shift immediate operation.
- 13. The computer-implemented method of claim 12 wherein the fourth byte of the four or more bytes is permitting the three-bit operation code extension to also indicate that the positions of the first number of positions are byte positions.
- 14. The computer-implemented method of claim 12 wherein the packed shift control signal format further comprises a fifth byte, indicated as the shift count source for an immediate shift count.
- 15. The computer-implemented method of claim 13 wherein the first replacement data generated for one of the first number of positions represents a value of zero.
- 16. The computer-implemented method of claim 1 wherein the second format type is different from the first format type.
- 17. The computer-implemented method of claim 1 wherein the second format type is similar to the first format type.
- 18. The computer-implemented method of claim 1 comprising receiving a packed shift control signal of a first format type from a random access memory (RAM).
- 19. The computer-implemented method of claim 18 comprising accessing said one or more of the set of control signals of the second format type in a read only memory (ROM).
- 20. The computer-implemented method of claim 18 comprising storing said one or more of the set of control signals of the second format type in the random access memory (RAM).
- 21. The computer-implemented method of claim 20 said one or more of the set of control signals of the second format type representing a sequence of machine executable emulation instructions.
- 22. A machine readable medium having stored thereon a plurality of control signals and when accessed by a processor, causing said processor to:
fetch a first packed shift control signal having a first format identifying a first packed shift operation and indicating a first shift count source; fetch a second packed shift control signal having a second format identifying a second packed shift operation and indicating a second shift count source; access one or more of a first set of control signals having a third format responsive to the first packed shift control signal; in response to said one or more of the first set of control signals to: access a first packed data having M times N bits, identify a first shift operation and a first count less than or equal to M, shift, the packed data by the first count of first positions, generate a first replacement data for one of the first positions, and produce a first shifted packed data comprising the first replacement data responsive to the first shift operation being identified; access one or more of a second set of control signals of the third format responsive to the second packed shift control signal; in response to said one or more of the second set of control signals to: access a packed data having M times N bits, identify a second shift operation, and a second count less than or equal to N, shift the packed data by the second count of second positions, generate a second replacement data for one of the second positions, and produce a second shifted packed data comprising the second replacement data responsive to the second shift operation being identified.
- 23. The machine readable medium of claim 22 wherein the second positions are byte positions.
- 24. The machine readable medium of claim 23 wherein M is sixteen.
- 25. The machine readable medium of claim 23 wherein M is eight.
- 26. The machine readable medium of claim 22 wherein the first positions are bit positions.
- 27. The machine readable medium of claim 22 wherein the third format is different from the first format.
- 28. The machine readable medium of claim 27 wherein the second format is similar to the first format.
- 29. The machine readable medium of claim 22 comprising a read only memory (ROM).
- 30. The machine readable medium of claim 29 having stored thereon control signals of the third format.
- 31. The machine readable medium of claim 29 comprising a random access memory (RAM).
- 32. The machine readable medium of claim 31, said RAM to store control signals of the first format and the second format.
- 33. The machine readable medium of claim 31, said RAM to store control signals of the third format.
- 34. The machine readable medium of claim 29 having stored thereon control signals representing one or more sequences of machine executable emulation instructions.
- 35. A computer system comprising:
a memory to store a shift control signal for shifting a first packed data by a number of shift positions; a processor to execute control signals; and a storage device having stored thereon a plurality of control signals and when accessed by the processor, causing said processor to:
access the shift control signal from the memory, the shift control signal identifying a first packed shift operation and having a first format permitting a first three-bit source address and a three-bit operation code extension to indicate whether the positions of the number of shift positions are byte positions or bit positions; responsive to the shift control signal, accessing one or more of a set of control signals of a second format; and responsive to said one or more of the set of control signals of the second format, accessing the first packed data having a set of data elements, shifting the first packed data by the number of shift positions according to the first packed shift operation, generating a first replacement data for one of the number of positions, and producing a shifted first packed data comprising the first replacement data.
- 36. The computer system of claim 35 wherein the storage device has stored thereon a plurality of control signals of the second format, which is different from the first format.
- 37. The computer system of claim 36 wherein said one or more of the set of control signals of the second format are stored in a random access memory (RAM).
- 38. The computer system of claim 35 wherein the second format is similar to the first format.
- 39. The computer system of claim 35, the storage device comprising a read only memory (ROM).
- 40. The computer system of claim 39, the storage device having stored thereon control signals of the second format.
RELATED APPLICATIONS
[0001] This is a continuation of application Ser. No. 09/783,816 filed Jan. 14, 2001, U.S. Pat. No. 6,738,793; which is a continuation-in-part of application Ser. No. 08/610,495 filed Mar. 4, 1996, U.S. Pat. No. 6,275,834; which is a continuation-in-part of application Ser. No. 08/349,730 filed Dec. 1, 1994, abandoned.
Continuations (1)
|
Number |
Date |
Country |
Parent |
09783816 |
Jan 2001 |
US |
Child |
10846726 |
May 2004 |
US |
Continuation in Parts (2)
|
Number |
Date |
Country |
Parent |
08610495 |
Mar 1996 |
US |
Child |
09783816 |
Jan 2001 |
US |
Parent |
08349730 |
Dec 1994 |
US |
Child |
08610495 |
Mar 1996 |
US |