diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-09-29 21:41:57 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-29 21:41:57 +0200 |
| commit | 487a11fd2c43bcdd6c24c4da2009a750a32fdf59 (patch) | |
| tree | c7665a640a96931762105bc3bae6d9c33436bfe2 /Source/Core | |
| parent | 1f2ec9afd637fa1fa86921c52c0e4cde27a86082 (diff) | |
| parent | 2e8d775df1006c1e777ac3dca9decb7d6ca540e3 (diff) | |
Merge pull request #11110 from JosJuice/jit64-boolx-formatting-fixes
Jit64: boolX formatting fixes
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp | 10 |
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); |
