Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11890 from shuffle2/msvc-opt
msvc: workaround optimizer bug
  • Loading branch information
AdmiralCurtiss committed Jun 5, 2023
2 parents 252d3f3 + c1580eb commit e3aaf23
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp
Expand Up @@ -326,7 +326,17 @@ void JitArm64::boolX(UGeckoInstruction inst)
else if ((gpr.IsImm(s) && (gpr.GetImm(s) == 0 || gpr.GetImm(s) == 0xFFFFFFFF)) ||
(gpr.IsImm(b) && (gpr.GetImm(b) == 0 || gpr.GetImm(b) == 0xFFFFFFFF)))
{
const auto [i, j] = gpr.IsImm(s) ? std::pair(s, b) : std::pair(b, s);
int i, j;
if (gpr.IsImm(s))
{
i = s;
j = b;
}
else
{
i = b;
j = s;
}
bool is_zero = gpr.GetImm(i) == 0;

bool complement_b = (inst.SUBOP10 == 60 /* andcx */) || (inst.SUBOP10 == 412 /* orcx */);
Expand Down

0 comments on commit e3aaf23

Please sign in to comment.