From eb6f4922b8dc06bdd5537bbcab830396ed7901a7 Mon Sep 17 00:00:00 2001 From: LDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com> Date: Thu, 9 Aug 2018 12:59:02 +0200 Subject: [PATCH] Address PR feedback (further tested). --- ChocolArm64/Instruction/AInstEmitSimdArithmetic.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ChocolArm64/Instruction/AInstEmitSimdArithmetic.cs b/ChocolArm64/Instruction/AInstEmitSimdArithmetic.cs index 1687d715c8..02e903f6fb 100644 --- a/ChocolArm64/Instruction/AInstEmitSimdArithmetic.cs +++ b/ChocolArm64/Instruction/AInstEmitSimdArithmetic.cs @@ -174,7 +174,7 @@ namespace ChocolArm64.Instruction { long RoundConst = 1L << (ESize - 1); - AILLabel LblFalse = new AILLabel(); + AILLabel LblTrue = new AILLabel(); Context.EmitLsl(1); @@ -186,12 +186,11 @@ namespace ChocolArm64.Instruction Context.Emit(OpCodes.Dup); Context.EmitLdc_I8((long)int.MinValue); - Context.Emit(OpCodes.Ceq); - Context.Emit(OpCodes.Brfalse_S, LblFalse); + Context.Emit(OpCodes.Bne_Un_S, LblTrue); Context.Emit(OpCodes.Neg); - Context.MarkLabel(LblFalse); + Context.MarkLabel(LblTrue); } }