0
0
Fork 0
mirror of https://github.com/GreemDev/Ryujinx.git synced 2024-12-23 09:15:46 +00:00

Fold ConvertI64ToI32 imm64 (#1359)

* Fold ConvertI64ToI32 imm64

* Increment PTC version

* Bump PPTC InternalVersion

Co-authored-by: jduncanator <1518948+jduncanator@users.noreply.github.com>
This commit is contained in:
Ficture Seven 2020-07-11 04:35:38 +04:00 committed by GitHub
parent f224769c49
commit 7639bb2e86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

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

View file

@ -20,7 +20,7 @@ namespace ARMeilleure.Translation.PTC
{ {
private const string HeaderMagic = "PTChd"; 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"; private const string BaseDir = "Ryujinx";