Removed parts of the MMU functionality to use memory directly (faster, but potentially more dangerous, WIP), also changed the Shl/Sshr immediate instructions to use IL instead of calling the method
This commit is contained in:
parent
d77d691381
commit
18ac1c4045
10 changed files with 89 additions and 188 deletions
|
@ -790,32 +790,6 @@ namespace ChocolArm64.Instruction
|
|||
return Res;
|
||||
}
|
||||
|
||||
public static AVec Shl64(AVec Vector, int Shift, int Size)
|
||||
{
|
||||
return Shl(Vector, Shift, Size, 8);
|
||||
}
|
||||
|
||||
public static AVec Shl128(AVec Vector, int Shift, int Size)
|
||||
{
|
||||
return Shl(Vector, Shift, Size, 16);
|
||||
}
|
||||
|
||||
private static AVec Shl(AVec Vector, int Shift, int Size, int Bytes)
|
||||
{
|
||||
AVec Res = new AVec();
|
||||
|
||||
int Elems = Bytes >> Size;
|
||||
|
||||
for (int Index = 0; Index < Elems; Index++)
|
||||
{
|
||||
ulong Value = ExtractVec(Vector, Index, Size);
|
||||
|
||||
Res = InsertVec(Res, Index, Size, Value << Shift);
|
||||
}
|
||||
|
||||
return Res;
|
||||
}
|
||||
|
||||
public static AVec Sshll(AVec Vector, int Shift, int Size)
|
||||
{
|
||||
return Sshll_(Vector, Shift, Size, false);
|
||||
|
@ -843,32 +817,6 @@ namespace ChocolArm64.Instruction
|
|||
return Res;
|
||||
}
|
||||
|
||||
public static AVec Sshr64(AVec Vector, int Shift, int Size)
|
||||
{
|
||||
return Sshr(Vector, Shift, Size, 8);
|
||||
}
|
||||
|
||||
public static AVec Sshr128(AVec Vector, int Shift, int Size)
|
||||
{
|
||||
return Sshr(Vector, Shift, Size, 16);
|
||||
}
|
||||
|
||||
private static AVec Sshr(AVec Vector, int Shift, int Size, int Bytes)
|
||||
{
|
||||
AVec Res = new AVec();
|
||||
|
||||
int Elems = Bytes >> Size;
|
||||
|
||||
for (int Index = 0; Index < Elems; Index++)
|
||||
{
|
||||
long Value = ExtractSVec(Vector, Index, Size);
|
||||
|
||||
Res = InsertSVec(Res, Index, Size, Value >> Shift);
|
||||
}
|
||||
|
||||
return Res;
|
||||
}
|
||||
|
||||
public static AVec Tbl1_V64(AVec Vector, AVec Tb0)
|
||||
{
|
||||
return Tbl(Vector, 8, Tb0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue