# US 2004/0064684 A1 · System and method for selectively updating pointers used in conditionally executed load/store with update instructions

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

- Number: US 2004/0064684 A1
- Document ID: US20040064684A1
- Status: Published application
- Kind: A1
- Application number: 10/262,414
- Filed: 2002-09-30
- Published: 2004-04-01
- Earliest claimed: 2002-09-30
- Inventors: Seshagiri P. Kalluri; Shannon A. Wichman; Ramon C. Trombetta
- Web page: https://patentgrep.com/patent/US20040064684A1

## CPC

- G06F 9/30043: {LOAD or STORE instructions; Clear instruction}
- G06F 9/30072: {to perform conditional operations, e.g. using predicates or guards}
- G06F 9/30145: {Instruction analysis, e.g. decoding, instruction word fields}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A processor is disclosed including an instruction unit and an execution unit. The instruction unit fetches and decodes a conditional execution instruction and one or more target instructions. The conditional execution instruction specifies the target instructions, a register, and a register condition, and includes pointer update information. The execution unit saves a result of each of the target instructions dependent upon the existence of the specified register condition during execution of the conditional execution instruction. When a target instruction is an instruction involving a pointer subject to update, the execution unit updates the pointer dependent upon the pointer update information. A system (e.g., a computer system) is described including the processor coupled to a memory system. A method is disclosed for conditionally executing at least one instruction, including inputting the conditional execution instruction and the target instructions.

## Claims

### Claim 1

A processor, comprising:
an instruction unit configured to fetch and decode a conditional execution instruction and at least one target instruction, wherein the conditional execution instruction specifies the at least one target instruction, a specified register of the processor, and a specified condition within the specified register, and wherein the conditional execution instruction comprises pointer update information;
an execution unit operably coupled to the instruction unit and configured to save a result of each of the at least one target instruction dependent upon the existence of the specified condition within the specified register during execution of the conditional execution instruction; and
wherein in the event the at least one target instruction comprises an instruction involving a pointer subject to update, the execution unit is configured to update the pointer dependent upon the pointer update information.

### Claim 2 (depends on 1)

The processor as recited in claim 1, wherein the pointer update information specifies that the pointer is to be updated either unconditionally or dependent upon the specified condition.

### Claim 3 (depends on 2)

The processor as recited in claim 2, wherein in the event the pointer update information specifies the pointer is to be updated unconditionally, the execution unit is configured to update the pointer independent of the specified condition.

### Claim 4 (depends on 2)

The processor as recited in claim 2, wherein in the event the pointer update information specifies the pointer is to be updated dependent upon the specified condition, the execution unit is configured to update the pointer dependent upon the specified condition.

### Claim 5 (depends on 1)

The processor as recited in claim 1, wherein the instruction involving the pointer subject to update specifies the pointer is to be modified and stored in a register of the processor.

### Claim 6 (depends on 5)

The processor as recited in claim 5, wherein the register of the processor is a general purpose register.

### Claim 7 (depends on 1)

The processor as recited in claim 1, wherein the instruction involving the pointer subject to update comprises a load with update instruction or a store with update instruction.

### Claim 8 (depends on 1)

The processor as recited in claim 1, wherein the conditional execution instruction precedes the at least one target instruction in a software program.

### Claim 9 (depends on 1)

The processor as recited in claim 1, wherein the conditional execution instruction is a fixed-length instruction.

### Claim 10 (depends on 1)

The processor as recited in claim 1, wherein the at least one target instruction comprises a code block including a plurality of consecutive instructions, and wherein the conditional execution instruction specifies the code block.

### Claim 11 (depends on 9)

The processor as recited in claim 9, wherein the conditional execution instruction comprises a field specifying the code block.

### Claim 12 (depends on 1)

The processor as recited in claim 1, wherein the conditional execution instruction comprises a field specifying the specified register.

### Claim 13 (depends on 1)

The processor as recited in claim 1, wherein the conditional execution instruction comprises at least one bit position specifying the condition within the specified register.

### Claim 14 (depends on 1)

The processor as recited in claim 1, wherein the conditional execution instruction specifies a flag register or a general purpose register within the processor.

### Claim 15 (depends on 1)

The processor as recited in claim 1, wherein the execution unit is configured to perform an operation specified by each of the at least one target instruction, thereby producing the result of the at least one target instruction.

### Claim 16 (depends on 1)

The processor as recited in claim 1, wherein the execution unit is configured to save the result only in the event the specified condition exists in the specified register during execution of the conditional execution instruction.

### Claim 17

A system, comprising:
a memory system and a processor coupled to the memory system;
wherein the memory system comprises a conditional execution instruction and at least one target instruction, and wherein the conditional execution instruction specifies the at least one target instruction, a specified register of the processor, and a specified condition within the specified register, and wherein the conditional execution instruction comprises pointer update information;
wherein the processor comprises:
an instruction unit configured to fetch instructions from the memory system and to and decode the conditional execution instruction and the least one target instruction;
an execution unit operably coupled to the instruction unit and configured to save a result of each of the at least one target instruction dependent upon the existence of the specified condition in the specified register during execution of the conditional execution instruction; and
wherein in the event the at least one target instruction comprises an instruction involving a pointer subject to update, the execution unit is configured to update the pointer dependent upon the pointer update information.

### Claim 18

A method for conditionally executing at least one instruction, the method comprising:
inputting a conditional execution instruction and the at least one target instruction, wherein the conditional execution instruction specifies the at least one target instruction, a specified register, and a specified condition within the specified register, and wherein the conditional execution instruction comprises pointer update information;
in the event the at least one target instruction comprises an instruction involving a pointer subject to update, updating the pointer dependent upon the pointer update information; and
saving a result of each of the at least one target instruction dependent upon the specified condition within the specified register during execution of the conditional execution instruction.

### Claim 19 (depends on 18)

The method as recited in claim 18, wherein the updating of the pointer comprises:
in the event the pointer update information specifies the pointer is to be updated unconditionally, updating the pointer independent of the specified condition.

### Claim 20 (depends on 18)

The method as recited in claim 18, wherein the updating of the pointer comprises:
in the event the pointer update information specifies the pointer is to be updated dependent upon the specified condition, updating the pointer dependent upon the specified condition.

### Claim 21 (depends on 1)

The method as recited in claim 1, wherein the instruction involving the pointer subject to update specifies the pointer is to be modified and stored in a register of the processor.

### Claim 22 (depends on 18)

The method as recited in claim 18, wherein the conditional execution instruction precedes the at least one target instruction in a software program.

### Claim 23 (depends on 18)

The method as recited in claim 18, wherein the conditional execution instruction comprises a first field specifying the at least one target instruction, a second field specifying the register, and at least one bit position specifying the condition within the register.

### Claim 24 (depends on 18)

The method as recited in claim 18, wherein the inputting comprises:
fetching a conditional execution instruction and the at least one target instruction from a memory system, wherein the conditional execution instruction specifies the at least one target instruction, a register, and a condition within the register, and wherein the conditional execution instruction comprises pointer update information.

### Claim 25

A processor, comprising:
means for inputting a conditional execution instruction and at least one target instruction, wherein the conditional execution instruction specifies the at least one target instruction, a specified register, and a specified condition within the specified register, and wherein the conditional execution instruction comprises pointer update information;
means for, in the event the at least one target instruction comprises an instruction involving a pointer subject to update, updating the pointer dependent upon the pointer update information; and
means for saving a result of each of the at least one target instruction dependent upon the specified condition within the specified register during execution of the conditional execution instruction.
