发明名称 RELATIVE OFFSET BRANCHING IN A FIXED-WIDTH REDUCED INSTRUCTION SET COMPUTING ARCHITECTURE
摘要 Embodiments relate to a method and computer program product for relative offset branching in a reduced instruction set computing (RISC) architecture. One aspect is a method that includes fetching a branch instruction from an instruction stream having a fixed instruction width. A relative offset value is acquired from the instruction stream. The relative offset value is formatted as an offset relative to a program counter value and sized as a multiple of the fixed instruction width. The relative offset value is added with the program counter value to form a branch target address value. The branch target address value is loaded into a program counter based on the branch instruction. Execution of the instruction stream is redirected to a next instruction based on the branch target address value in the program counter.
申请公布号 US2015347148(A1) 申请公布日期 2015.12.03
申请号 US201414478114 申请日期 2014.09.05
申请人 International Business Machines Corporation 发明人 Gschwind Michael K.
分类号 G06F9/38;G06F9/30 主分类号 G06F9/38
代理机构 代理人
主权项 1. A computer implemented method for relative offset branching in a reduced instruction set computing (RISC) architecture, the method comprising: fetching a branch instruction from an instruction stream having a fixed instruction width; acquiring a relative offset value from the instruction stream, the relative offset value formatted as an offset relative to a program counter value and sized as a multiple of the fixed instruction width; adding the relative offset value with the program counter value to form a branch target address value; loading the branch target address value into a program counter based on the branch instruction; and redirecting execution of the instruction stream to a next instruction based on the branch target address value in the program counter.
地址 Armonk NY US