Merge pull request #13267 from Sintendo/arm64-fix-gt-micro

JitArm64_SystemRegisters: Small FixGTBeforeSettingCRFieldBit optimization
This commit is contained in:
Admiral H. Curtiss 2025-01-28 19:43:53 +01:00 committed by GitHub
commit 3f79aa23b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}