diff --git a/ARMeilleure/CodeGen/Optimizations/ConstantFolding.cs b/ARMeilleure/CodeGen/Optimizations/ConstantFolding.cs index 790fd53d00..359af113ce 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 c715160392..2742719dd2 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";