Zero-overhead loop operation in microprocessor having instruction buffer
Abstract
A loop instruction, at least one target instruction, and an associated trigger address are cached during loop entry. During each loop iteration, the processor predicts whether the loop will be taken or not-taken in a subsequent iteration. When pre-fetch of the cached loop instruction is subsequently detected (i.e., by comparing the trigger address with the current program counter value), the loop taken/not-taken prediction is used to fetch either loop body instructions (when predicted taken) or fall-through instructions (when predicted not-taken). The cached loop instruction is then executed and the loop taken/not-taken prediction is verified using a dedicated loop execution circuit while a penultimate loop body instruction is executed in the processor execution stage (pipeline). When a previous loop taken prediction is verified, the cached target instruction is executed, and then the fetched loop body instructions are executed. When a loop not-taken prediction is verified, the fetched fall-through instructions are executed.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 17.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a processor including a pre-fetch stage for fetching program instructions from a system memory device, and an execution stage for executing the fetched program instructions, a circuit for controlling an iterative execution of a group of said program instructions including a loop instruction and a target instruction, wherein each iteration begins with execution of the target instruction and ends with execution of the loop instruction, and wherein, upon executing the loop instruction at the end of each iteration, a loop counter value determines whether a new iteration is initiated and the tar
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 17 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (1)
- Intel Architecture Software Devloper's Manual, 1997, Intel Co., vol. 2, p. 278-279.