aboutsummaryrefslogtreecommitdiff
path: root/ARMeilleure/Decoders/OpCode32SimdDupGP.cs
diff options
context:
space:
mode:
authorTSR Berry <20988865+TSRBerry@users.noreply.github.com>2023-04-08 01:22:00 +0200
committerMary <thog@protonmail.com>2023-04-27 23:51:14 +0200
commitcee712105850ac3385cd0091a923438167433f9f (patch)
tree4a5274b21d8b7f938c0d0ce18736d3f2993b11b1 /ARMeilleure/Decoders/OpCode32SimdDupGP.cs
parentcd124bda587ef09668a971fa1cac1c3f0cfc9f21 (diff)
Move solution and projects to src
Diffstat (limited to 'ARMeilleure/Decoders/OpCode32SimdDupGP.cs')
-rw-r--r--ARMeilleure/Decoders/OpCode32SimdDupGP.cs36
1 files changed, 0 insertions, 36 deletions
diff --git a/ARMeilleure/Decoders/OpCode32SimdDupGP.cs b/ARMeilleure/Decoders/OpCode32SimdDupGP.cs
deleted file mode 100644
index 31546ea3..00000000
--- a/ARMeilleure/Decoders/OpCode32SimdDupGP.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-namespace ARMeilleure.Decoders
-{
- class OpCode32SimdDupGP : OpCode32, IOpCode32Simd
- {
- public int Size { get; }
- public int Vd { get; }
- public int Rt { get; }
- public bool Q { get; }
-
- public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdDupGP(inst, address, opCode, false);
- public static OpCode CreateT32(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdDupGP(inst, address, opCode, true);
-
- public OpCode32SimdDupGP(InstDescriptor inst, ulong address, int opCode, bool isThumb) : base(inst, address, opCode)
- {
- IsThumb = isThumb;
-
- Size = 2 - (((opCode >> 21) & 0x2) | ((opCode >> 5) & 0x1)); // B:E - 0 for 32, 16 then 8.
- if (Size == -1)
- {
- Instruction = InstDescriptor.Undefined;
- return;
- }
- Q = ((opCode >> 21) & 0x1) != 0;
-
- RegisterSize = Q ? RegisterSize.Simd128 : RegisterSize.Simd64;
-
- Vd = ((opCode >> 3) & 0x10) | ((opCode >> 16) & 0xf);
- Rt = ((opCode >> 12) & 0xf);
-
- if (DecoderHelper.VectorArgumentsInvalid(Q, Vd))
- {
- Instruction = InstDescriptor.Undefined;
- }
- }
- }
-}