mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-14 12:56:41 +00:00
2f16491712
* Get rid of Reflection.Emit dependency on CPU and Shader projects * Remove useless private sets * Missed those due to the alignment
30 lines
1.1 KiB
C#
30 lines
1.1 KiB
C#
namespace ARMeilleure.Decoders
|
|
{
|
|
class OpCode32SimdRegElem : OpCode32SimdReg
|
|
{
|
|
public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdRegElem(inst, address, opCode);
|
|
|
|
public OpCode32SimdRegElem(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
|
|
{
|
|
Q = ((opCode >> 24) & 0x1) != 0;
|
|
F = ((opCode >> 8) & 0x1) != 0;
|
|
Size = (opCode >> 20) & 0x3;
|
|
|
|
RegisterSize = Q ? RegisterSize.Simd128 : RegisterSize.Simd64;
|
|
|
|
if (Size == 1)
|
|
{
|
|
Vm = ((opCode >> 3) & 0x1) | ((opCode >> 4) & 0x2) | ((opCode << 2) & 0x1c);
|
|
}
|
|
else /* if (Size == 2) */
|
|
{
|
|
Vm = ((opCode >> 5) & 0x1) | ((opCode << 1) & 0x1e);
|
|
}
|
|
|
|
if (GetType() == typeof(OpCode32SimdRegElem) && DecoderHelper.VectorArgumentsInvalid(Q, Vd, Vn) || Size == 0 || (Size == 1 && F))
|
|
{
|
|
Instruction = InstDescriptor.Undefined;
|
|
}
|
|
}
|
|
}
|
|
}
|