Address PR feedback (further tested).

This commit is contained in:
LDj3SNuD 2018-08-09 12:59:02 +02:00 committed by GitHub
commit eb6f4922b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,7 +174,7 @@ namespace ChocolArm64.Instruction
{ {
long RoundConst = 1L << (ESize - 1); long RoundConst = 1L << (ESize - 1);
AILLabel LblFalse = new AILLabel(); AILLabel LblTrue = new AILLabel();
Context.EmitLsl(1); Context.EmitLsl(1);
@ -186,12 +186,11 @@ namespace ChocolArm64.Instruction
Context.Emit(OpCodes.Dup); Context.Emit(OpCodes.Dup);
Context.EmitLdc_I8((long)int.MinValue); Context.EmitLdc_I8((long)int.MinValue);
Context.Emit(OpCodes.Ceq); Context.Emit(OpCodes.Bne_Un_S, LblTrue);
Context.Emit(OpCodes.Brfalse_S, LblFalse);
Context.Emit(OpCodes.Neg); Context.Emit(OpCodes.Neg);
Context.MarkLabel(LblFalse); Context.MarkLabel(LblTrue);
} }
} }