OpCode32SimdRegLong.cs 996 B

123456789101112131415161718192021222324
  1. namespace ARMeilleure.Decoders
  2. {
  3. class OpCode32SimdRegLong : OpCode32SimdReg
  4. {
  5. public bool Polynomial { get; }
  6. public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdRegLong(inst, address, opCode, false);
  7. public new static OpCode CreateT32(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdRegLong(inst, address, opCode, true);
  8. public OpCode32SimdRegLong(InstDescriptor inst, ulong address, int opCode, bool isThumb) : base(inst, address, opCode, isThumb)
  9. {
  10. Q = false;
  11. RegisterSize = RegisterSize.Simd64;
  12. Polynomial = ((opCode >> 9) & 0x1) != 0;
  13. // Subclasses have their own handling of Vx to account for before checking.
  14. if (GetType() == typeof(OpCode32SimdRegLong) && DecoderHelper.VectorArgumentsInvalid(true, Vd))
  15. {
  16. Instruction = InstDescriptor.Undefined;
  17. }
  18. }
  19. }
  20. }