From be194dfc9cf15f80069b5f7d66a8d66ccb5b2fc2 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 13 Jun 2021 16:22:29 +0200 Subject: [PATCH] Jit64: Fix FPRF non-SSE4.1 handling of negative zero --- Source/Core/Core/PowerPC/Jit64Common/EmuCodeBlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/Jit64Common/EmuCodeBlock.cpp b/Source/Core/Core/PowerPC/Jit64Common/EmuCodeBlock.cpp index dbd2cd3497..409b158891 100644 --- a/Source/Core/Core/PowerPC/Jit64Common/EmuCodeBlock.cpp +++ b/Source/Core/Core/PowerPC/Jit64Common/EmuCodeBlock.cpp @@ -994,7 +994,7 @@ void EmuCodeBlock::SetFPRF(Gen::X64Reg xmm) Common::PPC_FPCLASS_PINF)); continue3 = J(); SetJumpTarget(zeroExponent); - TEST(64, R(RSCRATCH), R(RSCRATCH)); + TEST(64, R(RSCRATCH), MConst(psDoubleNoSign)); FixupBranch zero = J_CC(CC_Z); SHR(64, R(RSCRATCH), Imm8(63)); LEA(32, RSCRATCH,