# US 2013/0159676 A1 · Instruction set architecture with extended register addressing

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0159676 A1
- Document ID: US20130159676A1
- Status: Published application
- Kind: A1
- Application number: 13/330,804
- Filed: 2011-12-20
- Published: 2013-06-20
- Earliest claimed: 2011-12-20
- Assignees: International Business Machines Corporation
- Inventors: Adam J. Muff; Paul E. Schardt; Robert A. Shearer; Matthew R. Tubbs
- Web page: https://patentgrep.com/patent/US20130159676A1

## CPC

- G06F 9/30185: {according to one or more bits in the instruction, e.g. prefix, sub-opcode}
- G06F 9/30101: {Special purpose registers}
- G06F 9/30138: {Extension of register space, e.g. register cache}
- G06F 9/30189: {according to execution mode, e.g. mode flag}
- G06F 9/342: {Extension of operand address space}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and circuit arrangement selectively repurpose bits from a primary opcode portion of an instruction for use in decoding one or more operands for the instruction. Decode logic of a processor, for example, may be placed in a predetermined mode that decodes a primary opcode for an instruction that is different from that specified in the primary opcode portion of the instruction, and then utilize one or more bits in the primary opcode portion to decode one or more operands for the instruction. By doing so, additional space is freed up in the instruction to support a larger register file and/or additional instruction types, e.g., as specified by a secondary or extended opcode.

## Claims

### Claim 1

A method of executing instructions in a processor of the type including an auxiliary execution unit, the method comprising:
receiving first and second instructions from an instruction stream, wherein the first and second instructions are members of an instruction set architecture defined for the processor, and wherein each instruction in the instruction set architecture includes a primary opcode portion and an operand portion;
in response to receiving the first and second instructions:
decoding the first and second instructions by determining primary opcodes for each of the first and second instructions from the respective primary opcode portions thereof and determining at least one operand for each of the first and second instructions from the respective operand portions thereof;
storing a primary opcode in a primary opcode register in response to decoding the first instruction; and
storing a count in a count register in response to decoding the second instruction; and
after receiving the first and second instructions, receiving a plurality of auxiliary instructions from the instruction stream, wherein a number of auxiliary instructions in the plurality of auxiliary instructions is equal to the count stored in the count register by the second instruction; and
for each auxiliary instruction among the plurality of auxiliary instructions:
determining that the count register stores a non-zero value;
decoding a primary opcode for such auxiliary instruction based upon the primary opcode stored in the primary opcode register;
decoding a secondary opcode for such auxiliary instruction from a secondary opcode portion of such auxiliary instruction, wherein the secondary opcode portion is different from the primary opcode portion;
decoding a plurality of operands for such auxiliary instruction by concatenating at least one most significant bit for each operand encoded in the primary opcode portion of such auxiliary instruction with a plurality of least significant bits for each operand encoded in the operand portion of such auxiliary instruction;
executing such auxiliary instruction in the auxiliary execution unit using the primary opcode, secondary opcode and plurality of operands decoded from such auxiliary instruction; and
decrementing the count register.

### Claim 2

A method of executing instructions from an instruction set architecture in a processor, wherein the instruction set architecture defines a primary opcode portion and an operand portion for each instruction in the instruction set architecture, the method comprising:
in response to receiving a first instruction in an instruction stream:
decoding the first instruction with decode logic in the processor to determine a primary opcode for the first instruction from data encoded in the primary opcode portion thereof; and
enabling a predetermined mode for the decode logic; and
in response to receiving a second instruction in the instruction stream:
determining that the predetermined mode is enabled;
in response to determining that the predetermined mode is enabled, decoding a primary opcode for the second instruction that is different from that defined in the primary opcode portion thereof and decoding at least one operand for the second instruction using data encoded in the primary opcode portion of the second instruction; and
executing the second instruction based upon the decoded primary opcode and at least one operand thereof.

### Claim 3 (depends on 2)

The method of claim 2, wherein the predetermined mode comprises an extended register addressing mode, and wherein the first instruction is a move instruction.

### Claim 4 (depends on 2)

The method of claim 2, wherein enabling the predetermined mode comprises storing a count into a count register to specify a number of instructions in the instruction stream to decode in the predetermined mode.

### Claim 5 (depends on 4)

The method of claim 4, further comprising decrementing the count register in association with executing the second instruction, wherein determining that the predetermined mode is enabled includes determining that a non-zero value is stored in the count register.

### Claim 6 (depends on 5)

The method of claim 5, further comprising disabling the predetermined mode in response to a zero value being stored in the count register.

### Claim 7 (depends on 2)

The method of claim 2, wherein decoding the primary opcode for the second instruction that is different from that defined in the primary opcode portion thereof includes decoding the primary opcode using data stored in a primary opcode register.

### Claim 8 (depends on 7)

The method of claim 7, further comprising, in response to receiving a third instruction that is earlier in the instruction stream than the second instruction:
decoding the third instruction with the decode logic to determine a primary opcode for the third instruction from data encoded in the primary opcode portion thereof; and
storing a primary opcode in the primary opcode register, wherein decoding the primary opcode using the data stored in the primary opcode register comprises using the primary opcode stored in the primary opcode register as the primary opcode for the second instruction.

### Claim 9 (depends on 2)

The method of claim 2, wherein decoding at least one operand for the second instruction using data encoded in the primary opcode portion of the second instruction includes generating a first register address for a first operand for the second instruction using at least one bit in the primary opcode portion of the second instruction.

### Claim 10 (depends on 9)

The method of claim 9, wherein generating the first register address includes concatenating at least one bit in the primary opcode portion of the second instruction with a plurality of bits in the operand portion of the second instruction.

### Claim 11 (depends on 10)

The method of claim 10, wherein concatenating at least one bit in the primary opcode portion of the second instruction with a plurality of bits in the operand portion of the second instruction including using the at least one bit in the primary opcode portion as a most significant bit of the first register address.

### Claim 12 (depends on 2)

The method of claim 2, wherein the second instruction includes a plurality of source operands and a destination operand, and wherein decoding at least one operand for the second instruction includes decoding the plurality of source operands and the destination operand for the second instruction by generating a register address for each source and destination operand by, for each source and destination operand, concatenating at least one bit from the primary opcode portion of the second instruction with a plurality of bits from the operand portion of the second instruction.

### Claim 13 (depends on 2)

The method of claim 2, further comprising decoding a secondary opcode for the second instruction from a secondary opcode portion of the instruction, wherein executing the second instruction is further based upon the decoded secondary opcode.

### Claim 14

A circuit arrangement, comprising:
a processor configured to execute instructions from an instruction set architecture, wherein the instruction set architecture defines a primary opcode portion and an operand portion for each instruction in the instruction set architecture; and
decode logic disposed in the processor, wherein the decode logic is configured to:
in response to receiving a first instruction in an instruction stream:
decode the first instruction to determine a primary opcode for the first instruction from data encoded in the primary opcode portion thereof; and
enable a predetermined mode; and
in response to receiving a second instruction in the instruction stream:
determine that the predetermined mode is enabled; and
in response to determining that the predetermined mode is enabled, decode a primary opcode for the second instruction that is different from that defined in the primary opcode portion thereof and decode at least one operand for the second instruction using data encoded in the primary opcode portion of the second instruction; and
execution logic disposed in the processor and configured to execute the second instruction based upon the decoded primary opcode and at least one operand thereof.

### Claim 15 (depends on 14)

The circuit arrangement of claim 14, wherein the predetermined mode comprises an extended register addressing mode, and wherein the first instruction is a move instruction.

### Claim 16 (depends on 14)

The circuit arrangement of claim 14, wherein the predetermined mode is enabled in response to storing a count into a count register to specify a number of instructions in the instruction stream to decode in the predetermined mode.

### Claim 17 (depends on 16)

The circuit arrangement of claim 16, wherein the decode logic is further configured to decrement the count register in association with execution of the second instruction, and wherein the predetermined mode is enabled in response to a non-zero value being stored in the count register.

### Claim 18 (depends on 14)

The circuit arrangement of claim 14, wherein the decode logic is configured to decode the primary opcode for the second instruction that is different from that defined in the primary opcode portion thereof by decoding the primary opcode using data stored in a primary opcode register.

### Claim 19 (depends on 18)

The circuit arrangement of claim 18, wherein the decode logic is further configured to, in response to receiving a third instruction that is earlier in the instruction stream than the second instruction:
decode the third instruction with the decode logic to determine a primary opcode for the third instruction from data encoded in the primary opcode portion thereof; and
store a primary opcode in the primary opcode register;
wherein the decode logic is configured to decode the primary opcode for the second instruction using the primary opcode stored in the primary opcode register as the primary opcode for the second instruction.

### Claim 20 (depends on 14)

The circuit arrangement of claim 14, wherein the decode logic is configured to decode at least one operand for the second instruction using data encoded in the primary opcode portion of the second instruction by generating a first register address for a first operand for the second instruction using at least one bit in the primary opcode portion of the second instruction.

### Claim 21 (depends on 20)

The circuit arrangement of claim 20, wherein the decode logic is configured to generate the first register address by concatenating at least one bit in the primary opcode portion of the second instruction with a plurality of bits in the operand portion of the second instruction, with the at least one bit in the primary opcode portion used as a most significant bit of the first register address.

### Claim 22 (depends on 14)

The circuit arrangement of claim 14, wherein the second instruction includes a plurality of source operands and a destination operand, and wherein the decode logic is configured to decoding at least one operand for the second instruction by decoding the plurality of source operands and the destination operand for the second instruction by generating a register address for each source and destination operand by, for each source and destination operand, concatenating at least one bit from the primary opcode portion of the second instruction with a plurality of bits from the operand portion of the second instruction.

### Claim 23 (depends on 14)

The circuit arrangement of claim 14, wherein the decode logic is further configured to decode a secondary opcode for the second instruction from a secondary opcode portion of the instruction such that the second instruction is executed further based upon the decoded secondary opcode.

### Claim 24 (depends on 14)

An integrated circuit device including the circuit arrangement of claim 14.

### Claim 25 (depends on 14)

A program product comprising a computer readable medium and logic definition program code stored on the computer readable medium and defining the circuit arrangement of claim 14.
