发明名称 Number of pipeline stages and loop length related counter differential based end-loop prediction
摘要 An apparatus for prediction of loop instructions. Loop instructions decrement the value in a counter register and branch to a target address (specified by an instruction operand) if the decremented value of the counter register is greater than zero. The apparatus comprises a loop detection unit that detects the presence of a loop instruction in the instruction stream. An indication of the loop instruction is conveyed to a reorder buffer which stores speculative register values. If the apparatus is not currently processing the loop instruction, a compare value corresponding to the counter register prior to execution of the loop instruction is conveyed to a loop prediction unit. The loop prediction unit also increments a counter value upon receiving each indication of the loop instruction. This counter value is then compared to the compare value conveyed from the reorder buffer. If the counter value is one less than the compare value, a signal is asserted that indicates that the loop instruction should be predicted not-taken upon a next iteration of the loop. In this manner, loop prediction accuracy may be increased by correctly predicting the loop instruction not-taken. Because loops are commonly found in a variety of applications, increasing the accuracy of loop prediction, even slightly, may have a beneficial effect on performance. The loop operation is particularly important in scientific applications where it may be used to perform various digital signal processing routines and to traverse arrays.
申请公布号 US6003128(A) 申请公布日期 1999.12.14
申请号 US19970846656 申请日期 1997.05.01
申请人 ADVANCED MICRO DEVICES, INC. 发明人 TRAN, THANG M.
分类号 G06F9/32;G06F9/38;(IPC1-7):G06F9/32 主分类号 G06F9/32
代理机构 代理人
主权项
地址