summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2022-09-29 20:27:15 +0200
committerJosJuice <josjuice@gmail.com>2022-09-29 20:27:15 +0200
commit2e8d775df1006c1e777ac3dca9decb7d6ca540e3 (patch)
treec7665a640a96931762105bc3bae6d9c33436bfe2 /Source/Core
parent1f2ec9afd637fa1fa86921c52c0e4cde27a86082 (diff)
Jit64: boolX formatting fixes
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp
index aa3df5a608..88991867ec 100644
--- a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp
+++ b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp
@@ -682,7 +682,7 @@ void Jit64::boolX(UGeckoInstruction inst)
const bool is_xor = (inst.SUBOP10 == 316 /* xorx */) || (inst.SUBOP10 == 284 /* eqvx */);
// Precompute complement when possible
- if (complement_b && gpr.IsImm(b) || (inst.SUBOP10 == 284 /* eqvx */))
+ if ((complement_b && gpr.IsImm(b)) || (inst.SUBOP10 == 284 /* eqvx */))
{
imm = ~imm;
complement_b = false;
@@ -706,7 +706,9 @@ void Jit64::boolX(UGeckoInstruction inst)
NOT(32, Ra);
}
else if (a == j)
+ {
XOR(32, Ra, Imm32(imm));
+ }
else if (s32(imm) >= -128 && s32(imm) <= 127)
{
MOV(32, Ra, Rj);
@@ -721,7 +723,9 @@ void Jit64::boolX(UGeckoInstruction inst)
else if (is_and)
{
if (imm == 0)
+ {
gpr.SetImmediate32(a, final_not ? 0xFFFFFFFF : 0);
+ }
else
{
RCOpArg Rj = gpr.Use(j, RCMode::Read);
@@ -746,7 +750,9 @@ void Jit64::boolX(UGeckoInstruction inst)
else
{
if (a == j)
+ {
AND(32, Ra, Imm32(imm));
+ }
else if (s32(imm) >= -128 && s32(imm) <= 127)
{
MOV(32, Ra, Rj);
@@ -790,7 +796,9 @@ void Jit64::boolX(UGeckoInstruction inst)
else
{
if (a == j)
+ {
OR(32, Ra, Imm32(imm));
+ }
else if (s32(imm) >= -128 && s32(imm) <= 127)
{
MOV(32, Ra, Rj);