Skip to content

Commit

Permalink
Merge pull request #13267 from Sintendo/arm64-fix-gt-micro
Browse files Browse the repository at this point in the history
JitArm64_SystemRegisters: Small FixGTBeforeSettingCRFieldBit optimization
  • Loading branch information
AdmiralCurtiss authored Jan 28, 2025
2 parents 0b7f954 + 24f2981 commit 3f79aa2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void JitArm64::FixGTBeforeSettingCRFieldBit(ARM64Reg reg)
// doesn't accidentally become considered set. Gross but necessary; this can break actual games.
auto WA = gpr.GetScopedReg();
ARM64Reg XA = EncodeRegTo64(WA);
ORR(XA, reg, LogicalImm(1ULL << 63, GPRSize::B64));
MOVI2R(XA, 1ULL << 63);
CMP(reg, ARM64Reg::ZR);
CSEL(reg, reg, XA, CC_NEQ);
}
Expand Down

0 comments on commit 3f79aa2

Please sign in to comment.