Merge pull request #12722 from JosJuice/jitarm64-mtfsfix-minor

JitArm64: Minor mtfsfix optimization
This commit is contained in:
Admiral H. Curtiss 2024-05-22 23:54:29 +02:00 committed by GitHub
commit 578a3ce543
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -896,7 +896,8 @@ void JitArm64::mtfsfix(UGeckoInstruction inst)
}
else if (imm == 0x0)
{
BFI(WA, ARM64Reg::WZR, shift, 4);
const u32 inverted_mask = ~mask;
AND(WA, WA, LogicalImm(inverted_mask, GPRSize::B32));
}
else
{