From 7c4346685cc1bb66f91b584af706c0cb7d372f00 Mon Sep 17 00:00:00 2001 From: Merry Date: Wed, 14 Feb 2018 22:01:36 +0000 Subject: [PATCH] AInstEmitAluHelper: Simplify EmitAddsVCheck (#14) --- 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 367c3b75..b526c553 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);