OpCode32SimdExt.cs 817 B

1234567891011121314151617181920
  1. namespace ARMeilleure.Decoders
  2. {
  3. class OpCode32SimdExt : OpCode32SimdReg
  4. {
  5. public int Immediate { get; }
  6. public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdExt(inst, address, opCode, false);
  7. public new static OpCode CreateT32(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdExt(inst, address, opCode, true);
  8. public OpCode32SimdExt(InstDescriptor inst, ulong address, int opCode, bool isThumb) : base(inst, address, opCode, isThumb)
  9. {
  10. Immediate = (opCode >> 8) & 0xf;
  11. Size = 0;
  12. if (DecoderHelper.VectorArgumentsInvalid(Q, Vd, Vm, Vn) || (!Q && Immediate > 7))
  13. {
  14. Instruction = InstDescriptor.Undefined;
  15. }
  16. }
  17. }
  18. }