Single instruction for multiple loops
First Claim
Patent Images
1. A processor comprising:
- an execution unit to execute a set of instructions; and
an instruction fetching mechanism that retrieves the set of instructions to be executed by the execution unit, at least one of the set of instructions comprising a single instruction that provides for execution of other instructions of the set of instructions in accordance with multiple looping constructs.
16 Assignments
0 Petitions
Accused Products
Abstract
Embodiments of the present invention relate generally to the manner in which processors execute multiple loop instructions. That is, embodiments of the invention relate to the organization of multiple loop constructs, such as, for example, nested loops, to achieve improved performance during loop execution. One embodiment contemplates a single instruction that provides for execution of other instructions of a set of instructions in accordance with multiple looping constructs. Another embodiment contemplates a single-loop instruction suitable for terminating on multiple termination conditions.
-
Citations
19 Claims
-
1. A processor comprising:
-
an execution unit to execute a set of instructions; and
an instruction fetching mechanism that retrieves the set of instructions to be executed by the execution unit, at least one of the set of instructions comprising a single instruction that provides for execution of other instructions of the set of instructions in accordance with multiple looping constructs. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method of performing an instruction for use by a processor, the method comprising:
-
fetching the instruction from a memory source;
decoding the instruction to identify an instruction type; and
initializing a plurality of dedicated loop storage elements corresponding to a plurality of different loops to be executed using a single instruction. - View Dependent Claims (7, 8)
-
-
9. A method of performing an instruction for use by a processor, the method comprising:
-
fetching the instruction from a memory source;
decoding the instruction t o identify an instruction type; and
determining a loop type for a single instruction that is to execute a plurality of different loops, the loop type comprising one of a conditional and non-conditional type of loop termination.
-
-
10. A method of executing at least one instruction by a processor, the method comprising:
-
fetching a first instruction from a memory source;
decoding the first instruction to identify an instruction type; and
determining a loop type selected from one of a conditional and nonconditional type of loop termination for a loop that contains more than one instruction other than the first instruction.
-
-
11. A method of executing at least one instruction by a processor, the method comprising:
-
fetching a first instruction from a memory source;
decoding the first instruction to identify an instruction type; and
determining a loop type selected from one of a conditional and nonconditional type of loop termination for a loop that contains at least one instruction that may be interrupted during loop execution. - View Dependent Claims (13, 17, 18, 19)
-
-
12. A method of executing at least one instruction by a processor, the method comprising:
-
fetching a first instruction from a memory source;
decoding the first instruction to identify an instruction type;
performing a first set of logic relating to a first loop termination condition for a first loop; and
performing a second set of logic relating to a second loop termination condition for a second loop.
-
-
14. A method of executing instructions by a processor, the method comprising:
- executing a first loop including a first instruction within a body of the first loop and a second loop including a first instruction within a body of the second loop, wherein the first instruction of the first loop and the first instruction of the second loop are a same instruction at the same address.
-
15. A method of executing instructions by a processor, the method comprising:
- executing a first loop including a last instruction within a body of the first loop and a second loop including a last instruction within a body of the second loop, wherein the last instruction of the first loop and the last instruction of the second loop are the same instruction at the same address.
-
16. A processor instruction comprising:
-
a first field that indicates a first termination condition for a first execution loop; and
a second field that indicates a second termination condition for a second execution loop.
-
Specification