OpCode32SimdTbl.cs 854 B

123456789101112131415161718192021222324
  1. namespace ARMeilleure.Decoders
  2. {
  3. class OpCode32SimdTbl : OpCode32SimdReg
  4. {
  5. public int Length { get; }
  6. public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdTbl(inst, address, opCode, false);
  7. public new static OpCode CreateT32(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdTbl(inst, address, opCode, true);
  8. public OpCode32SimdTbl(InstDescriptor inst, ulong address, int opCode, bool isThumb) : base(inst, address, opCode, isThumb)
  9. {
  10. Length = (opCode >> 8) & 3;
  11. Size = 0;
  12. Opc = Q ? 1 : 0;
  13. Q = false;
  14. RegisterSize = RegisterSize.Simd64;
  15. if (Vn + Length + 1 > 32)
  16. {
  17. Instruction = InstDescriptor.Undefined;
  18. }
  19. }
  20. }
  21. }