OpCode32SimdCvtFI.cs 694 B

1234567891011121314151617181920212223
  1. namespace ARMeilleure.Decoders
  2. {
  3. class OpCode32SimdCvtFI : OpCode32SimdS
  4. {
  5. public new static OpCode Create(InstDescriptor inst, ulong address, int opCode) => new OpCode32SimdCvtFI(inst, address, opCode);
  6. public OpCode32SimdCvtFI(InstDescriptor inst, ulong address, int opCode) : base(inst, address, opCode)
  7. {
  8. Opc = (opCode >> 7) & 0x1;
  9. bool toInteger = (Opc2 & 0b100) != 0;
  10. if (toInteger)
  11. {
  12. Vd = ((opCode >> 22) & 0x1) | ((opCode >> 11) & 0x1e);
  13. }
  14. else
  15. {
  16. Vm = ((opCode >> 5) & 0x1) | ((opCode << 1) & 0x1e);
  17. }
  18. }
  19. }
  20. }