Skip to content

Commit

Permalink
Merge pull request #2999 from Sonicadvance1/AArch64_test_fix
Browse files Browse the repository at this point in the history
[AArch64] Fix Test&Branch to relative location instructions.
  • Loading branch information
Sonicadvance1 committed Sep 7, 2015
2 parents 5585c5a + 2ad26ab commit 5520155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Common/Arm64Emitter.cpp
Expand Up @@ -477,7 +477,7 @@ void ARM64XEmitter::EncodeTestBranchInst(u32 op, ARM64Reg Rt, u8 bits, const voi

Rt = DecodeReg(Rt);
Write32((b64Bit << 31) | (0x36 << 24) | (op << 24) | \
(bits << 19) | (distance << 5) | Rt);
(bits << 19) | (((u32)distance << 5) & 0x7FFE0) | Rt);
}

void ARM64XEmitter::EncodeUnconditionalBranchInst(u32 op, const void* ptr)
Expand Down

0 comments on commit 5520155

Please sign in to comment.