From be1d01bf7dfd73f44b0bb8398c57da84f3b5ef87 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Thu, 15 Feb 2018 01:35:44 -0300 Subject: [PATCH] Shouldn't have undone this --- Ryujinx/Cpu/Instruction/AInstEmitAluHelper.cs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/Ryujinx/Cpu/Instruction/AInstEmitAluHelper.cs b/Ryujinx/Cpu/Instruction/AInstEmitAluHelper.cs index 5dc3babb..57ec25dd 100644 --- a/Ryujinx/Cpu/Instruction/AInstEmitAluHelper.cs +++ b/Ryujinx/Cpu/Instruction/AInstEmitAluHelper.cs @@ -21,22 +21,13 @@ namespace ChocolArm64.Instruction public static void EmitAddsVCheck(AILEmitterCtx Context) { - //V = (Rd ^ Rn) & (Rd ^ Rm) & ~(Rn ^ Rm) < 0 - Context.EmitSttmp(); - Context.EmitLdtmp(); - Context.EmitLdtmp(); + //V = (Rd ^ Rn) & ~(Rn ^ Rm) < 0 + Context.Emit(OpCodes.Dup); EmitDataLoadRn(Context); Context.Emit(OpCodes.Xor); - Context.EmitLdtmp(); - - EmitDataLoadOper2(Context); - - Context.Emit(OpCodes.Xor); - Context.Emit(OpCodes.And); - EmitDataLoadOpers(Context); Context.Emit(OpCodes.Xor);