# US 2019/0056951 A1 · Predicting and storing a predicted target address in a plurality of selected locations

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

- Number: US 2019/0056951 A1
- Document ID: US20190056951A1
- Status: Published application
- Kind: A1
- Application number: 15/819,542
- Filed: 2017-11-21
- Published: 2019-02-21
- Earliest claimed: 2017-08-18
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Michael K. Gschwind; Valentina Salapura
- Web page: https://patentgrep.com/patent/US20190056951A1

## CPC

- G06F 9/3806: {using address prediction, e.g. return stack, branch history buffer}
- G06F 9/30054: {Unconditional branch instructions}
- G06F 9/30061: {Multi-way branch instructions, e.g. CASE}
- G06F 9/322: {for non-sequential address}
- G06F 9/323: {for indirect branch instructions}
- G06F 9/3804: {for branches, e.g. hedging, branch folding}
- G06F 9/3832: {Value prediction for operands; operand history buffers}
- G06F 9/3842: {Speculative instruction execution}
- G06F 9/384: {Register renaming}
- G06F 9/3844: {using dynamic branch prediction, e.g. using branch history tables}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Predicting a predicted value to be used in register-indirect branching. The predicted value is stored in a first selected location and a second selected location accessible to one or more instructions of a computing environment. The storing is performed concurrently to processing a register-indirect branch. Further, the first selected location and the second selected location is in addition to another location used to store an instruction address. The predicted value is used in speculative processing that includes the register-indirect branch.

## Claims

### Claim 1

A computer-implemented method of facilitating processing within a computing environment, the computer-implemented method of comprising:
predicting, using a processor of the computing environment, a predicted value to be used in register-indirect branching;
storing the predicted value in a first selected location and a second selected location accessible to one or more instructions of the computing environment, the storing being performed concurrently to processing a register-indirect branch, and the first selected location and the second selected location being in addition to another location used to store an instruction address; and
using the predicted value in speculative processing that includes the register-indirect branch.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the predicted value comprises a target address to be used by an instruction fetch.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein the using comprises redirecting the instruction fetch to the target address.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein the first selected location comprises a first hardware register and the second selected location comprises a second hardware register.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising:
determining whether the predicted value is accurate; and
performing recovery, based on determining the predicted value is inaccurate.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein the recovery comprises:
flushing one or more instructions executed subsequent to the using; and
replacing the predicted value with a non-predicted value.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, wherein the replacing comprises using one or more rename registers to provide the non-predicted value.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein the storing comprises:
allocating a plurality of registers to hold the predicted value, the plurality of registers including a target address register and an affiliated register; and
copying the predicted value to the plurality of registers allocated to hold the predicted value.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, wherein the plurality of registers are rename registers allocated for the target address register and the affiliated register.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, further comprising marking the rename registers as available.
