From 4aa0c0133a51de5b1835fe1579dff1ce4bf4c6bc Mon Sep 17 00:00:00 2001 From: Bram Speeckaert Date: Tue, 1 Nov 2022 19:01:38 +0100 Subject: [PATCH] JitArm64: Introduce MultiplyImmediate Add a new function that will handle all the special cases regarding multiplication. It does nothing for now, but will be expanded in follow-up commits. --- Source/Core/Core/PowerPC/JitArm64/Jit.h | 1 + Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Source/Core/Core/PowerPC/JitArm64/Jit.h b/Source/Core/Core/PowerPC/JitArm64/Jit.h index e9abdbbc4b..9372fffd2d 100644 --- a/Source/Core/Core/PowerPC/JitArm64/Jit.h +++ b/Source/Core/Core/PowerPC/JitArm64/Jit.h @@ -332,6 +332,7 @@ protected: void (ARM64XEmitter::*op)(Arm64Gen::ARM64Reg, Arm64Gen::ARM64Reg, u64, Arm64Gen::ARM64Reg), bool Rc = false); + bool MultiplyImmediate(u32 imm, int a, int d, bool rc); void SetFPRFIfNeeded(bool single, Arm64Gen::ARM64Reg reg); void Force25BitPrecision(Arm64Gen::ARM64Reg output, Arm64Gen::ARM64Reg input); diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp index 2fc1524809..046a4f9c1b 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp @@ -876,6 +876,11 @@ void JitArm64::addic(UGeckoInstruction inst) } } +bool JitArm64::MultiplyImmediate(u32 imm, int a, int d, bool rc) +{ + return false; +} + void JitArm64::mulli(UGeckoInstruction inst) { INSTRUCTION_START