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:
parent
8167a046ef
commit
dc6e5e7ff6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue