Merge pull request #2999 from Sonicadvance1/AArch64_test_fix
[AArch64] Fix Test&Branch to relative location instructions.
This commit is contained in:
commit
5520155e14
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue