diff --git a/ARMeilleure/CodeGen/Optimizations/ConstantFolding.cs b/ARMeilleure/CodeGen/Optimizations/ConstantFolding.cs index 790fd53d..359af113 100644 --- a/ARMeilleure/CodeGen/Optimizations/ConstantFolding.cs +++ b/ARMeilleure/CodeGen/Optimizations/ConstantFolding.cs @@ -78,6 +78,13 @@ namespace ARMeilleure.CodeGen.Optimizations } break; + case Instruction.ConvertI64ToI32: + if (type == OperandType.I32) + { + EvaluateUnaryI64(operation, (x) => (int)x); + } + break; + case Instruction.Copy: if (type == OperandType.I32) { diff --git a/ARMeilleure/Translation/PTC/Ptc.cs b/ARMeilleure/Translation/PTC/Ptc.cs index c7151603..2742719d 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 = 3; //! To be incremented manually for each change to the ARMeilleure project. + private const int InternalVersion = 4; //! To be incremented manually for each change to the ARMeilleure project. private const string BaseDir = "Ryujinx";