JitArm64: Replace a comparison to SP

Comparing with an immediate 0 has the same effect but is much easier to
read.
This commit is contained in:
JosJuice 2024-05-26 08:47:20 +02:00
parent 8167a046ef
commit dc6e5e7ff6
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ FixupBranch JitArm64::JumpIfCRFieldBit(int field, int bit, bool jump_if_set)
case PowerPC::CR_EQ_BIT: // check bits 31-0 == 0
return jump_if_set ? CBZ(WA) : CBNZ(WA);
case PowerPC::CR_GT_BIT: // check val > 0
CMP(XA, ARM64Reg::SP);
CMP(XA, 0);
return B(jump_if_set ? CC_GT : CC_LE);
case PowerPC::CR_LT_BIT: // check bit 62 set
return jump_if_set ? TBNZ(XA, PowerPC::CR_EMU_LT_BIT) : TBZ(XA, PowerPC::CR_EMU_LT_BIT);