search for: skip_j

Displaying 2 results from an estimated 2 matches for "skip_j".

Did you mean: skip_
2020 Oct 06
3
[MC] Questions about relaxation in MC
...e result with the GNU assembler. GNU assembler will convert the branch to inverted one plus jump to make the branch possible. The range of unconditional jump is 1MiB. It looks like ########################## bne a0, a1, FAR_BRANCH … FAR_BRANCH: converted to ########################## beq a0, a1, SKIP_J j FAR_BRANCH SKIP_J: … FAR_BRANCH: I found there is a target hook, relaxInstruction, that tries to achieve the similar goal. However, the target hook only replaces one MCInst with another one with a larger branch range. For example, c.beqz will be converted to beq in the RISC-V backend if the fixu...
2020 Oct 06
3
Questions about relaxation in MC
...plus jump to make the branch possible. The range of unconditional > jump is 1MiB. It looks like > > ########################## > bne a0, a1, FAR_BRANCH > … > FAR_BRANCH: > > converted to > > ########################## > beq a0, a1, SKIP_J > j FAR_BRANCH > SKIP_J: > … > FAR_BRANCH: > > I found there is a target hook, relaxInstruction, that tries to > achieve the similar goal. However, the target hook only replaces > one MCInst with another one with a larger branch range. For >...