From 9cfe801075eec4cf6172e0cf181f07287d806012 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 30 Nov 2014 17:42:43 -0800 Subject: [PATCH] x86jit: Ensure we don't sequence temps+regs. --- Core/MIPS/x86/RegCacheFPU.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/MIPS/x86/RegCacheFPU.cpp b/Core/MIPS/x86/RegCacheFPU.cpp index da98db8d82..d25e0a48be 100644 --- a/Core/MIPS/x86/RegCacheFPU.cpp +++ b/Core/MIPS/x86/RegCacheFPU.cpp @@ -611,9 +611,9 @@ void FPURegCache::StoreFromRegister(int i) { if (mri[j] == -1) { break; } - if (mri[j] - 32 >= 128 && mri[j] == mri[j - 1] + 1) { + if (mri[j] - 32 >= 128 && mri[j - 1] - 32 >= 128 && mri[j] == mri[j - 1] + 1) { seq++; - } else if (mri[j] - 32 < 128 && voffset[mri[j] - 32] == voffset[mri[j - 1] - 32] + 1) { + } else if (mri[j] - 32 < 128 && mri[j - 1] - 32 < 128 && voffset[mri[j] - 32] == voffset[mri[j - 1] - 32] + 1) { seq++; } else { break;