forked from Mirror/Ryujinx
AInstEmitAluHelper: Simplify EmitSubsCCheck (#15)
This commit is contained in:
parent
74fbe1494d
commit
7791e1fe36
1 changed files with 3 additions and 7 deletions
|
@ -52,15 +52,11 @@ namespace ChocolArm64.Instruction
|
||||||
|
|
||||||
public static void EmitSubsCCheck(AILEmitterCtx Context)
|
public static void EmitSubsCCheck(AILEmitterCtx Context)
|
||||||
{
|
{
|
||||||
//C = Rn == Rm || Rn > Rm
|
//C = Rn == Rm || Rn > Rm = !(Rn < Rm)
|
||||||
EmitDataLoadOpers(Context);
|
EmitDataLoadOpers(Context);
|
||||||
|
|
||||||
Context.Emit(OpCodes.Ceq);
|
Context.Emit(OpCodes.Clt_Un);
|
||||||
|
Context.Emit(OpCodes.Not);
|
||||||
EmitDataLoadOpers(Context);
|
|
||||||
|
|
||||||
Context.Emit(OpCodes.Cgt_Un);
|
|
||||||
Context.Emit(OpCodes.Or);
|
|
||||||
|
|
||||||
Context.EmitStflg((int)APState.CBit);
|
Context.EmitStflg((int)APState.CBit);
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue