소스 검색

Fix folding of ConvertI64ToI32 imm64 (#1383)

* Fix folding of ConvertI64ToI32 imm64

* Increment PTC internal version

* Clean up
Ficture Seven 5 년 전
부모
커밋
b5127131c5
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      ARMeilleure/CodeGen/Optimizations/ConstantFolding.cs
  2. 1 1
      ARMeilleure/Translation/PTC/Ptc.cs

+ 1 - 1
ARMeilleure/CodeGen/Optimizations/ConstantFolding.cs

@@ -81,7 +81,7 @@ namespace ARMeilleure.CodeGen.Optimizations
                 case Instruction.ConvertI64ToI32:
                 case Instruction.ConvertI64ToI32:
                     if (type == OperandType.I32)
                     if (type == OperandType.I32)
                     {
                     {
-                        EvaluateUnaryI64(operation, (x) => (int)x);
+                        EvaluateUnaryI32(operation, (x) => x);
                     }
                     }
                     break;
                     break;
 
 

+ 1 - 1
ARMeilleure/Translation/PTC/Ptc.cs

@@ -20,7 +20,7 @@ namespace ARMeilleure.Translation.PTC
     {
     {
         private const string HeaderMagic = "PTChd";
         private const string HeaderMagic = "PTChd";
 
 
-        private const int InternalVersion = 6; //! To be incremented manually for each change to the ARMeilleure project.
+        private const int InternalVersion = 7; //! To be incremented manually for each change to the ARMeilleure project.
 
 
         private const string BaseDir = "Ryujinx";
         private const string BaseDir = "Ryujinx";