mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2024-12-22 23:55:47 +00:00
AInstEmitAluHelper: Simplify EmitAddsVCheck (#14)
This commit is contained in:
parent
7791e1fe36
commit
7c4346685c
1 changed files with 2 additions and 11 deletions
|
@ -21,22 +21,13 @@ namespace ChocolArm64.Instruction
|
||||||
|
|
||||||
public static void EmitAddsVCheck(AILEmitterCtx Context)
|
public static void EmitAddsVCheck(AILEmitterCtx Context)
|
||||||
{
|
{
|
||||||
//V = (Rd ^ Rn) & (Rd ^ Rm) & ~(Rn ^ Rm) < 0
|
//V = (Rd ^ Rn) & ~(Rn ^ Rm) < 0
|
||||||
Context.EmitSttmp();
|
Context.Emit(OpCodes.Dup);
|
||||||
Context.EmitLdtmp();
|
|
||||||
Context.EmitLdtmp();
|
|
||||||
|
|
||||||
EmitDataLoadRn(Context);
|
EmitDataLoadRn(Context);
|
||||||
|
|
||||||
Context.Emit(OpCodes.Xor);
|
Context.Emit(OpCodes.Xor);
|
||||||
|
|
||||||
Context.EmitLdtmp();
|
|
||||||
|
|
||||||
EmitDataLoadOper2(Context);
|
|
||||||
|
|
||||||
Context.Emit(OpCodes.Xor);
|
|
||||||
Context.Emit(OpCodes.And);
|
|
||||||
|
|
||||||
EmitDataLoadOpers(Context);
|
EmitDataLoadOpers(Context);
|
||||||
|
|
||||||
Context.Emit(OpCodes.Xor);
|
Context.Emit(OpCodes.Xor);
|
||||||
|
|
Loading…
Reference in a new issue