摘要:
A method and apparatus accepts a relative control transfer instruction and generates a compact absolute control transfer instruction which may have a number of bits one greater than the relative control transfer instruction and including flags to rapidly construct the target address of the relative control transfer instruction. The compact absolute control transfer instruction is generated by sign extending the displacement of the relative control transfer instructions and adding it to a set of least significant bits from the control transfer instruction address, and optionally coupling some or all of the bits from the result with the original opcode or a different opcode. The target address of the relative control transfer instruction is determined by using, incrementing or decrementing, depending on the state of the flags, a group of the most significant bits from the relative control transfer instruction address and appending the result with the least significant bits from the result of the addition described above.
摘要:
The present invention provides a method of accelerating the return from program flow changes in the execution of a program containing a plurality of instructions. The method includes the step of fetching a program flow change and determining if the program flow change contains a return instruction. A value a value of a program counter is registered that identifies a location in the program for the return from the program flow change. The program flow change is executed. A predicted value is speculated from a return prediction table and the program flow change returns in accordance with the speculative value.
摘要:
The present invention provides a method of accelerating the return from program flow changes in the execution of a program containing a plurality of instructions. The method includes the step of fetching a program flow change and determining if the program flow change contains a return instruction. A value a value of a program counter is registered that identifies a location in the program for the return from the program flow change. The program flow change is executed. A predicted value is speculated from a return prediction table and the program flow change returns in accordance with the speculative value.
摘要:
A method and apparatus accepts a relative control transfer instruction and generates a compact absolute control transfer instruction which may have a number of bits one greater than the relative control transfer instruction and including flags to rapidly construct the target address of the relative control transfer instruction. The compact absolute control transfer instruction is generated by sign extending the displacement of the relative control transfer instructions and adding it to a set of least significant bits from the control transfer instruction address, and optionally coupling some or all of the bits from the result with the original opcode or a different opcode. The target address of the relative control transfer instruction is determined by using, incrementing or decrementing, depending on the state of the flags, a group of the most significant bits from the relative control transfer instruction address and appending the result with the least significant bits from the result of the addition described above.