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

Mask shift constants on x86 backend (#1382)

* Mask shift constants on x86 backendd

* Version bump
This commit is contained in:
gdkchan 2020-07-11 02:52:38 -03:00 committed by GitHub
parent 0195d0938d
commit 38b26cf424
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -882,6 +882,10 @@ namespace ARMeilleure.CodeGen.X86
source = null;
}
else if (source.Kind == OperandKind.Constant)
{
source = source.With((uint)source.Value & (dest.Type == OperandType.I32 ? 0x1f : 0x3f));
}
WriteInstruction(dest, source, type, inst);
}

View file

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