Apply a fix to the ARM64 emitter ported over from Dolphin

This commit is contained in:
Henrik Rydgård committed 2017-12-10 02:05:25 +01:00
1 parent 299cb007c2
commit e07861991b
1 file changed
+1 -1
+1 -1
View File
@@ -1979,7 +1979,7 @@ void ARM64XEmitter::MOVI2R(ARM64Reg Rd, u64 imm, bool optimize)
u64 aligned_pc = (u64)GetCodePointer() & ~0xFFF;
s64 aligned_offset = (s64)imm - (s64)aligned_pc;
if (Count(upload_part) > 1 && abs64(aligned_offset) < 0xFFFFFFFFLL)
if (Count(upload_part) > 1 && abs64(aligned_offset) < 0x7FFFFFFFLL)
{
// Immediate we are loading is within 4GB of our aligned range
// Most likely a address that we can load in one or two instructions