From 5e1f305542823d0a04dbd8a71e68b905a698c166 Mon Sep 17 00:00:00 2001 From: Merry Date: Wed, 30 Nov 2022 00:28:06 +0000 Subject: [PATCH] emit_x64_data_processing: EmitSignedDiv64: Applease MSVC --- src/dynarmic/backend/x64/emit_x64_data_processing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dynarmic/backend/x64/emit_x64_data_processing.cpp b/src/dynarmic/backend/x64/emit_x64_data_processing.cpp index 5e44e6eb..97bbdf52 100644 --- a/src/dynarmic/backend/x64/emit_x64_data_processing.cpp +++ b/src/dynarmic/backend/x64/emit_x64_data_processing.cpp @@ -1218,7 +1218,7 @@ void EmitX64::EmitSignedDiv64(EmitContext& ctx, IR::Inst* inst) { code.xor_(eax, eax); code.test(divisor, divisor); code.jz(end); - code.cmp(divisor, -1); + code.cmp(divisor, 0xffffffff); // is sign extended code.jne(ok); code.mov(rax, 0x8000000000000000); code.cmp(dividend, rax);