From 3af2ce74ecf76cc8d6fdb9ff19101bfee47af7dd Mon Sep 17 00:00:00 2001 From: Valentin PONS Date: Sun, 19 Jul 2020 14:11:58 -0400 Subject: Implements some 32-bit instructions (VBIC, VTST, VSRA) (#1192) * Added some 32 bits instructions: * VBIC * VTST * VSRA * Incremented the PTC * Add tests and fix implementation * Fixed VBIC immediate opcode mapping * Hey hey! * Nit. Co-authored-by: gdkchan Co-authored-by: LDj3SNuD Co-authored-by: LDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com> --- ARMeilleure/Translation/EmitterContext.cs | 5 +++++ ARMeilleure/Translation/PTC/Ptc.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'ARMeilleure/Translation') diff --git a/ARMeilleure/Translation/EmitterContext.cs b/ARMeilleure/Translation/EmitterContext.cs index 656f1704..74421854 100644 --- a/ARMeilleure/Translation/EmitterContext.cs +++ b/ARMeilleure/Translation/EmitterContext.cs @@ -441,6 +441,11 @@ namespace ARMeilleure.Translation return Add(Instruction.VectorInsert8, Local(OperandType.V128), vector, value, Const(index)); } + public Operand VectorOne() + { + return Add(Instruction.VectorOne, Local(OperandType.V128)); + } + public Operand VectorZero() { return Add(Instruction.VectorZero, Local(OperandType.V128)); diff --git a/ARMeilleure/Translation/PTC/Ptc.cs b/ARMeilleure/Translation/PTC/Ptc.cs index 9db7c162..032e111e 100644 --- a/ARMeilleure/Translation/PTC/Ptc.cs +++ b/ARMeilleure/Translation/PTC/Ptc.cs @@ -20,7 +20,7 @@ namespace ARMeilleure.Translation.PTC { private const string HeaderMagic = "PTChd"; - private const int InternalVersion = 12; //! To be incremented manually for each change to the ARMeilleure project. + private const int InternalVersion = 13; //! To be incremented manually for each change to the ARMeilleure project. private const string BaseDir = "Ryujinx"; -- cgit v1.2.3