diff options
| author | TSR Berry <20988865+TSRBerry@users.noreply.github.com> | 2023-04-08 01:22:00 +0200 |
|---|---|---|
| committer | Mary <thog@protonmail.com> | 2023-04-27 23:51:14 +0200 |
| commit | cee712105850ac3385cd0091a923438167433f9f (patch) | |
| tree | 4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /ARMeilleure/Decoders/OpCode32SimdShImm.cs | |
| parent | cd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff) | |
Move solution and projects to src
Diffstat (limited to 'ARMeilleure/Decoders/OpCode32SimdShImm.cs')
| -rw-r--r-- | ARMeilleure/Decoders/OpCode32SimdShImm.cs | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/ARMeilleure/Decoders/OpCode32SimdShImm.cs b/ARMeilleure/Decoders/OpCode32SimdShImm.cs deleted file mode 100644 index 55ddc395..00000000 --- a/ARMeilleure/Decoders/OpCode32SimdShImm.cs +++ /dev/null @@ -1,46 +0,0 @@ -namespace ARMeilleure.Decoders -{ - class OpCode32SimdShImm : OpCode32Simd - { - public int Shift { get; } - - public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdShImm(inst, address, opCode, false); - public new static OpCode CreateT32(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdShImm(inst, address, opCode, true); - - public OpCode32SimdShImm(InstDescriptor inst, ulong address, int opCode, bool isThumb) : base(inst, address, opCode, isThumb) - { - int imm6 = (opCode >> 16) & 0x3f; - int limm6 = ((opCode >> 1) & 0x40) | imm6; - - if ((limm6 & 0x40) == 0b1000000) - { - Size = 3; - Shift = imm6; - } - else if ((limm6 & 0x60) == 0b0100000) - { - Size = 2; - Shift = imm6 - 32; - } - else if ((limm6 & 0x70) == 0b0010000) - { - Size = 1; - Shift = imm6 - 16; - } - else if ((limm6 & 0x78) == 0b0001000) - { - Size = 0; - Shift = imm6 - 8; - } - else - { - Instruction = InstDescriptor.Undefined; - } - - if (GetType() == typeof(OpCode32SimdShImm) && DecoderHelper.VectorArgumentsInvalid(Q, Vd, Vm)) - { - Instruction = InstDescriptor.Undefined; - } - } - } -} |
