OpCodeSimdCvt64.cs 754 B

123456789101112131415161718192021222324252627282930
  1. using ChocolArm64.Instructions;
  2. namespace ChocolArm64.Decoders
  3. {
  4. class OpCodeSimdCvt64 : OpCodeSimd64
  5. {
  6. public int FBits { get; private set; }
  7. public OpCodeSimdCvt64(Inst inst, long position, int opCode) : base(inst, position, opCode)
  8. {
  9. //TODO:
  10. //Und of Fixed Point variants.
  11. int scale = (opCode >> 10) & 0x3f;
  12. int sf = (opCode >> 31) & 0x1;
  13. /*if (Type != SF && !(Type == 2 && SF == 1))
  14. {
  15. Emitter = AInstEmit.Und;
  16. return;
  17. }*/
  18. FBits = 64 - scale;
  19. RegisterSize = sf != 0
  20. ? State.RegisterSize.Int64
  21. : State.RegisterSize.Int32;
  22. }
  23. }
  24. }