发明名称 CONVERTING SHORT BRANCHES TO PREDICATED INSTRUCTIONS
摘要 A microprocessor and method of processing instructions therein are disclosed . Initially, a sequence of instructions is dispatched by a dispatch unit of the microprocessor. A code sequence recognition unit (CSR) is configured to detect a short branch sequence withi n the sequence of instruction, where the short branch sequence includes a condition setting instruction, a conditional branch, and at least one additional instruction that is executed if the conditional branch is not taken. The short branch sequence is then internally converted to a predicated instruction sequence that includes the condition setting instruction and a predicated instruction corresponding to each additional instruction in the short branch sequence. The predicated instruction sequence is then executed in at least one functional unit of the processor. Detecting the sho rt branch sequence may include calculating the relative branch address associated with the conditional branch instruction and comparing the relative branch address to a specified maximum. In one embodiment, the received sequence of instructions may be converted into an instruction group by the processor. In this embodiment, the specified maximum number of instructions in a short branch sequence may be a function of the number of instructions in an instructiongroup. In an embodiment where the conditional branch statement is preferably allocated to the last slot of the instruction group, the additional instructions in the short branch sequence are located in the next subsequent instruction group. Converting the short branch sequence to the predicated instruction sequence may include converting each additional instruction in the short branch sequence to an analogous predicated instruction. In one embodiment, converting each additional instruction to it s analogous predicated instruction includes determining a predicated instruction opcode for each additional instruction in the short branch sequence by adjusting the opcode of each additional instruction by a predetermined offset. In another embodiment, the opcode conversion may be accomplished wit h an opcode lookup table.
申请公布号 CA2356805(A1) 申请公布日期 2003.03.07
申请号 CA20012356805 申请日期 2001.09.07
申请人 INTERNATIONAL BUSINESS MACHINES CORPORATION 发明人 MOORE, CHARLES ROBERTS;KAHLE, JAMES ALLAN
分类号 G06F9/30;G06F9/318;G06F9/32;G06F9/38;G06F15/76;(IPC1-7):G06F9/30 主分类号 G06F9/30
代理机构 代理人
主权项
地址