# US 11,119,777 B1 · Extended prefix including routing bit for extended instruction format

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

- Number: US 11,119,777 B1
- Document ID: US11119777B1
- Status: Granted
- Kind: B1
- Application number: 16/854,964
- Filed: 2020-04-22
- Granted: 2021-09-14
- Earliest claimed: 2020-04-22
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Giles Roger Frazier; Hung Q. Le
- Web page: https://patentgrep.com/patent/US11119777B1

## CPC

- G06F 9/30185: {according to one or more bits in the instruction, e.g. prefix, sub-opcode}
- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F 9/3836: {Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for an extended prefix including a routing bit for an extended instruction format are described herein. An aspect includes generating, by an instruction preprocessing module, a first extended instruction corresponding to an internal operation including a first routing bit. Another aspect includes generating, by the instruction preprocessing module, a second extended instruction corresponding to a prefixed instruction set architecture (ISA) instruction including a second routing bit, wherein a value of the second routing bit is opposite a value of the first routing bit. Another aspect includes providing the first extended instruction and the second extended instruction to a central processing unit (CPU). Another aspect includes, based on the value of the first routing bit, routing the internal operation directly to an execution unit of the CPU, and based on the value of the second routing bit, routing the prefixed ISA instruction to a decode/execute path of the CPU.

## Claims

### Claim 1

A computer-implemented method comprising:
generating, by an instruction preprocessing module, a first extended instruction corresponding to an internal operation, the first extended instruction comprising a first routing bit;
generating, by the instruction preprocessing module, a second extended instruction corresponding to a prefixed instruction set architecture (ISA) instruction, the second extended instruction comprising a second routing bit, wherein a value of the second routing bit is opposite a value of the first routing bit;
providing the first extended instruction and the second extended instruction to a central processing unit (CPU);
based on the value of the first routing bit, routing the internal operation directly to an execution unit of the CPU; and
based on the value of the second routing bit, routing the prefixed ISA instruction to a decode/execute path of the CPU.

### Claim 2 (depends on 1)

The method of claim 1, wherein the execution unit comprises one of an arithmetic execution unit, a fixed point execution unit, a vector execution unit, a floating point execution unit, a branch instruction execution unit, a load/store execution unit, and an input/output (I/O) execution unit.

### Claim 3 (depends on 1)

The method of claim 1, wherein generating the first extended instruction by the instruction preprocessing module comprises:
receiving a plurality of program instructions;
identifying at least two program instructions corresponding to the internal operation in the plurality of program instructions;
fusing the at least two program instructions to generate the first extended instruction; and
setting the first routing bit in the first extended instruction to indicate the internal operation.

### Claim 4 (depends on 3)

The method of claim 3, wherein the at least two program instructions each reference a same register, and wherein first extended instruction comprises the reference to the register.

### Claim 5 (depends on 1)

The method of claim 1, wherein generating the second extended instruction by the instruction preprocessing module comprises:
receiving a plurality of program instructions;
identifying a program instruction corresponding to the prefixed ISA instruction in the plurality of program instructions; and
generating the second extended instruction based on the identified program instruction; and
setting the second routing bit to indicate the prefixed ISA instruction.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first extended instruction and the second extended instruction each correspond to an extended instruction format, the extended instruction format comprising:
a prefix opcode located at a beginning of the extended instruction format, the prefix opcode comprising 6 bits;
a routing bit located directly after the prefix opcode;
an instruction prefix located directly after the routing bit, the instruction prefix comprising 25 bits; and
instruction bits locate directly after the instruction prefix, the instruction bits comprising 32 bits.

### Claim 7 (depends on 6)

The method of claim 6, wherein routing the internal operation directly to the execution unit of the CPU comprises:
discarding the prefix opcode and the first routing bit; and
concatenating the instruction prefix and the instruction bits to form the internal operation; and
wherein routing the prefixed ISA instruction to the decode/execute path of the CPU comprises:
discarding the prefix opcode and the second routing bit; and
providing the instruction prefix and the instruction bits to the decode/execute path of the CPU.

### Claim 8

A system comprising:
a memory having computer readable instructions; and
one or more processors for executing the computer readable instructions, the computer readable instructions controlling the one or more processors to perform operations comprising:
generating, by an instruction preprocessing module, a first extended instruction corresponding to an internal operation, the first extended instruction comprising a first routing bit;
generating, by the instruction preprocessing module, a second extended instruction corresponding to a prefixed instruction set architecture (ISA) instruction, the second extended instruction comprising a second routing bit, wherein a value of the second routing bit is opposite a value of the first routing bit;
providing the first extended instruction and the second extended instruction to a central processing unit (CPU);
based on the value of the first routing bit, routing the internal operation directly to an execution unit of the CPU; and
based on the value of the second routing bit, routing the prefixed ISA instruction to a decode/execute path of the CPU.

### Claim 9 (depends on 8)

The system of claim 8, wherein the execution unit comprises one of an arithmetic execution unit, a fixed point execution unit, a vector execution unit, a floating point execution unit, a branch instruction execution unit, a load/store execution unit, and an input/output (I/O) execution unit.

### Claim 10 (depends on 8)

The system of claim 8, wherein generating the first extended instruction by the instruction preprocessing module comprises:
receiving a plurality of program instructions;
identifying at least two program instructions corresponding to the internal operation in the plurality of program instructions;
fusing the at least two program instructions to generate the first extended instruction; and
setting the first routing bit in the first extended instruction to indicate the internal operation.

### Claim 11 (depends on 10)

The system of claim 10, wherein the at least two program instructions each reference a same register, and wherein first extended instruction comprises the reference to the register.

### Claim 12 (depends on 8)

The system of claim 8, wherein generating the second extended instruction by the instruction preprocessing module comprises:
receiving a plurality of program instructions;
identifying a program instruction corresponding to the prefixed ISA instruction in the plurality of program instructions; and
generating the second extended instruction based on the identified program instruction; and
setting the second routing bit to indicate the prefixed ISA instruction.

### Claim 13 (depends on 8)

The system of claim 8, wherein the first extended instruction and the second extended instruction each correspond to an extended instruction format, the extended instruction format comprising:
a prefix opcode located at a beginning of the extended instruction format, the prefix opcode comprising 6 bits;
a routing bit located directly after the prefix opcode;
an instruction prefix located directly after the routing bit, the instruction prefix comprising 25 bits; and
instruction bits locate directly after the instruction prefix, the instruction bits comprising 32 bits.

### Claim 14 (depends on 13)

The system of claim 13, wherein routing the internal operation directly to the execution unit of the CPU comprises:
discarding the prefix opcode and the first routing bit; and
concatenating the instruction prefix and the instruction bits to form the internal operation; and
wherein routing the prefixed ISA instruction to the decode/execute path of the CPU comprises:
discarding the prefix opcode and the second routing bit; and
providing the instruction prefix and the instruction bits to the decode/execute path of the CPU.

### Claim 15

A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by one or more processors to cause the one or more processors to perform operations comprising:
generating, by an instruction preprocessing module, a first extended instruction corresponding to an internal operation, the first extended instruction comprising a first routing bit;
generating, by the instruction preprocessing module, a second extended instruction corresponding to a prefixed instruction set architecture (ISA) instruction, the second extended instruction comprising a second routing bit, wherein a value of the second routing bit is opposite a value of the first routing bit;
providing the first extended instruction and the second extended instruction to a central processing unit (CPU);
based on the value of the first routing bit, routing the internal operation directly to an execution unit of the CPU; and
based on the value of the second routing bit, routing the prefixed ISA instruction to a decode/execute path of the CPU.

### Claim 16 (depends on 15)

The computer program product of claim 15, wherein the execution unit comprises one of an arithmetic execution unit, a fixed point execution unit, a vector execution unit, a floating point execution unit, a branch instruction execution unit, a load/store execution unit, and an input/output (I/O) execution unit.

### Claim 17 (depends on 15)

The computer program product of claim 15, wherein generating the first extended instruction by the instruction preprocessing module comprises:
receiving a plurality of program instructions;
identifying at least two program instructions corresponding to the internal operation in the plurality of program instructions;
fusing the at least two program instructions to generate the first extended instruction; and
setting the first routing bit in the first extended instruction to indicate the internal operation.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the at least two program instructions each reference a same register, and wherein first extended instruction comprises the reference to the register.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein generating the second extended instruction by the instruction preprocessing module comprises:
receiving a plurality of program instructions;
identifying a program instruction corresponding to the prefixed ISA instruction in the plurality of program instructions; and
generating the second extended instruction based on the identified program instruction; and
setting the second routing bit to indicate the prefixed ISA instruction.

### Claim 20 (depends on 15)

The computer program product of claim 15, wherein the first extended instruction and the second extended instruction each correspond to an extended instruction format, the extended instruction format comprising:
a prefix opcode located at a beginning of the extended instruction format, the prefix opcode comprising 6 bits;
a routing bit located directly after the prefix opcode;
an instruction prefix located directly after the routing bit, the instruction prefix comprising 25 bits; and
instruction bits locate directly after the instruction prefix, the instruction bits comprising 32 bits.
