mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-12-29 16:46:10 +00:00
AInstEmitAluHelper: Simplify EmitSubsCCheck (#15)
This commit is contained in:
parent
74fbe1494d
commit
7791e1fe36
|
@ -52,15 +52,11 @@ namespace ChocolArm64.Instruction
|
|||
|
||||
public static void EmitSubsCCheck(AILEmitterCtx Context)
|
||||
{
|
||||
//C = Rn == Rm || Rn > Rm
|
||||
//C = Rn == Rm || Rn > Rm = !(Rn < Rm)
|
||||
EmitDataLoadOpers(Context);
|
||||
|
||||
Context.Emit(OpCodes.Ceq);
|
||||
|
||||
EmitDataLoadOpers(Context);
|
||||
|
||||
Context.Emit(OpCodes.Cgt_Un);
|
||||
Context.Emit(OpCodes.Or);
|
||||
Context.Emit(OpCodes.Clt_Un);
|
||||
Context.Emit(OpCodes.Not);
|
||||
|
||||
Context.EmitStflg((int)APState.CBit);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue