# US 2013/0159675 A1 · Instruction predication using unused datapath facilities

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

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

## CPC

- G06F 9/30181: {Instruction operation extension or modification}
- G06F 9/30072: {to perform conditional operations, e.g. using predicates or guards}
- G06F 9/30101: {Special purpose registers}
- G06F 9/30185: {according to one or more bits in the instruction, e.g. prefix, sub-opcode}
- G06F 9/3802: {Instruction prefetching}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and circuit arrangement for selectively predicating an instruction in an instruction stream based upon a value corresponding to a predication register address indicated by a portion of an operand associated with the instruction. A first compare instruction in an instruction stream stores a compare result in at a register address of a predication register. The register address of the predication register is stored in a portion of an operand associated with a second instruction, and during decoding the second instruction, the predication register is accessed to determine a value stored at the register address of the predication register, and the second instruction is selectively predicated based on the value stored at the register address of the predication register.

## Claims

### Claim 1

A method of executing instructions in an instruction stream in a processor, the method comprising:
executing a first compare instruction to generate a compare result and setting a value corresponding to a register address of a predication register based on the compare result; and
analyzing a portion of an operand associated with a second instruction to determine the register address of the predication register, and selectively predicating the second instruction based at least in part on the value corresponding to the register address of the predication register.

### Claim 2 (depends on 1)

The method of claim 1, further comprising setting the portion of the operand associated with the second instruction to a value corresponding to the register address of the predication register.

### Claim 3 (depends on 1)

The method of claim 1, wherein the at least a portion of the operand comprises a plurality of bits of least significance in the operand.

### Claim 4 (depends on 1)

The method of claim 1, wherein the second instruction includes a predication enable bit, wherein analyzing a portion of an operand associated with the second instruction is in response to the predication enable bit being a first value.

### Claim 5 (depends on 1)

The method of claim 1, wherein selectively predicating the second instruction includes communicating a predication enable signal to an execution unit of the processor, the predication enable signal indicating to predicate the second instruction.

### Claim 6 (depends on 1)

The method of claim 1, the method further comprising:
storing a count value in a counter register associated with the processor prior to decoding the instruction, wherein the count value indicates a number of instructions in the instruction stream that may be predicated based on the compare result, and
wherein selectively predicating the second instruction is based at least in part on whether the counter register is greater than zero.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
predicating the second instruction to generate predicated result data, wherein the predicated result data includes the portion of the operand associated with the second instruction;
analyzing a portion of an operand associated with a third instruction in the instruction stream to determine the register address of the predication register, wherein the operand of the third instruction is the predicated result data of the second instruction; and
selectively predicating the third instruction based at least in part on the value corresponding to the register address of the predication register.

### Claim 8 (depends on 1)

The method of claim 1, wherein the second instruction includes an enable bit indicating whether the second instruction is a predicatable instruction, and wherein analyzing the portion of the second instruction to determine the register address of the predication register and selectively predicating the second instruction based at least in part on the value corresponding to the register address of the predication register is in response to determining that the enable bit indicates that the second instruction is a predicatable instruction.

### Claim 9 (depends on 1)

The method of claim 1, wherein analyzing the portion of the operand associated with the second instruction to determine the register address of the predication register includes accessing a register file storing the operand.

### Claim 10 (depends on 1)

The method of claim 1, wherein selectively predicating the second instruction based at least in part on the value corresponding to the register address of the predication register includes accessing a register file storing the predication register to determine the value corresponding to the register address of the predication register.

### Claim 11 (depends on 1)

The method of claim 1, wherein analyzing the portion of the operand associated with the second instruction is in parallel with decoding the second instruction.

### Claim 12

A circuit arrangement, comprising:
a processing unit;
a register file disposed in the processing unit configured to store a plurality of operands;
a predication register disposed in the processing unit;
an execution unit disposed in the processing unit configured to execute a first compare instruction to generate a compare result and set a value corresponding to a register address of the predication register based on the compare result;
predication logic disposed in the processing unit and configured to access the register file to analyze a portion of an operand associated with a second instruction to determine the register address of the predication register, and selectively predicate the instruction based at least in part on the value corresponding to the register address of the predication register.

### Claim 13 (depends on 12)

The circuit arrangement of claim 12, wherein the execution unit is configured to set the portion of the operand associated with the second instruction to the value corresponding to the register address of the predication register.

### Claim 14 (depends on 12)

The circuit arrangement of claim 12, wherein the portion of the operand corresponds to a plurality of bits of least significance in the operand.

### Claim 15 (depends on 12)

The circuit arrangement of claim 12, wherein the second instruction includes a predication enable bit, and wherein the predication logic is configured to analyze the portion of the operand associated with the second instruction in response to the predication bit being a first value.

### Claim 16 (depends on 12)

The circuit arrangement of claim 12, wherein the predication logic selectively predicates the second instruction by communicating a predication enable signal to the execution unit.

### Claim 17 (depends on 12)

The circuit arrangement of claim 12, wherein the predication logic includes a counter register configured to store a count value, wherein the count value indicates a number of instructions in an instruction stream that may be predicated based on the compare result, and
wherein the predication logic selectively predicates the second instruction based at least in part on whether the counter register is greater than zero.

### Claim 18 (depends on 12)

The circuit arrangement of claim 12, wherein the execution unit is configured to generate predicated result data based on the predication of the second instruction, wherein the predicated result data includes the portion of the operand associated with the second instruction, wherein the predication logic is configured to analyze a portion of an operand associated with a third instruction to determine the register address of the predication register, wherein the operand associated with the third instruction is the predicated result data of the second instruction, and wherein the predication logic is configured to selectively predicate the third instruction based at least in part on the value corresponding to the register address of the predication register.

### Claim 19 (depends on 12)

The circuit arrangement of claim 12, wherein the second instruction includes an enable bit indicating whether the instruction is a predicatable instruction, and wherein the predication logic is configured to analyze the portion of the second instruction to determine the register address of the predication register and selectively predicate the second instruction based at least in part on the value corresponding to the register address of the predication register in response to determining that the enable bit indicates that the second instruction is a predicatable instruction.

### Claim 20 (depends on 12)

The circuit arrangement of claim 12, further comprising:
decode logic disposed in the processing unit and configured to decode an instruction, and wherein the predication logic is configured to analyze the portion of the operand associated with the second instruction in parallel with the decode logic decoding the second instruction.

### Claim 21 (depends on 12)

An integrated circuit device comprising the circuit arrangement of claim 12.

### Claim 22 (depends on 12)

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