Merge pull request #9812 from JosJuice/fprf-x64-neg-zero

Jit64: Fix FPRF non-SSE4.1 handling of negative zero
This commit is contained in:
Tilka 2021-06-27 19:21:51 +01:00 committed by GitHub
commit 4166567f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -994,7 +994,7 @@ void EmuCodeBlock::SetFPRF(Gen::X64Reg xmm)
Common::PPC_FPCLASS_PINF)); Common::PPC_FPCLASS_PINF));
continue3 = J(); continue3 = J();
SetJumpTarget(zeroExponent); SetJumpTarget(zeroExponent);
TEST(64, R(RSCRATCH), R(RSCRATCH)); TEST(64, R(RSCRATCH), MConst(psDoubleNoSign));
FixupBranch zero = J_CC(CC_Z); FixupBranch zero = J_CC(CC_Z);
SHR(64, R(RSCRATCH), Imm8(63)); SHR(64, R(RSCRATCH), Imm8(63));
LEA(32, RSCRATCH, LEA(32, RSCRATCH,