aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Decoders/OpCodeSimdCvt64.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ChocolArm64/Decoders/OpCodeSimdCvt64.cs')
-rw-r--r--ChocolArm64/Decoders/OpCodeSimdCvt64.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/ChocolArm64/Decoders/OpCodeSimdCvt64.cs b/ChocolArm64/Decoders/OpCodeSimdCvt64.cs
new file mode 100644
index 00000000..6c68a3af
--- /dev/null
+++ b/ChocolArm64/Decoders/OpCodeSimdCvt64.cs
@@ -0,0 +1,31 @@
+using ChocolArm64.Instructions;
+using ChocolArm64.State;
+
+namespace ChocolArm64.Decoders
+{
+ class OpCodeSimdCvt64 : OpCodeSimd64
+ {
+ public int FBits { get; private set; }
+
+ public OpCodeSimdCvt64(Inst inst, long position, int opCode) : base(inst, position, opCode)
+ {
+ //TODO:
+ //Und of Fixed Point variants.
+ int scale = (opCode >> 10) & 0x3f;
+ int sf = (opCode >> 31) & 0x1;
+
+ /*if (Type != SF && !(Type == 2 && SF == 1))
+ {
+ Emitter = AInstEmit.Und;
+
+ return;
+ }*/
+
+ FBits = 64 - scale;
+
+ RegisterSize = sf != 0
+ ? State.RegisterSize.Int64
+ : State.RegisterSize.Int32;
+ }
+ }
+} \ No newline at end of file