From c0d7c5e9587b317c346a01347562169785f6a62a Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Thu, 7 Nov 2013 18:10:14 +0100 Subject: [PATCH] vsgn x86 bugfix --- Core/MIPS/x86/CompVFPU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/MIPS/x86/CompVFPU.cpp b/Core/MIPS/x86/CompVFPU.cpp index 937a9e191..331b9956d 100644 --- a/Core/MIPS/x86/CompVFPU.cpp +++ b/Core/MIPS/x86/CompVFPU.cpp @@ -1398,9 +1398,9 @@ void Jit::Comp_Vsgn(MIPSOpcode op) { } } - XORPS(XMM0, R(XMM0)); for (int i = 0; i < n; ++i) { + XORPS(XMM0, R(XMM0)); CMPEQSS(XMM0, fpr.V(sregs[i])); // XMM0 = s[i] == 0.0f MOVSS(XMM1, fpr.V(sregs[i])); // Preserve sign bit, replace rest with ones