aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Instructions/InstEmitMemoryHelper.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2019-02-25 20:46:34 -0300
committerjduncanator <1518948+jduncanator@users.noreply.github.com>2019-02-26 10:46:34 +1100
commit504f4f4abfd34696699fbf484264404f3011ec17 (patch)
treeb264d5fcc9226d91d3e6a180d7f1e84a11bdd19e /ChocolArm64/Instructions/InstEmitMemoryHelper.cs
parent5001f78b1d07b988709dd5f5d1009ebe9b44c669 (diff)
Remove all the calls to StaticCast methods (#605)
Diffstat (limited to 'ChocolArm64/Instructions/InstEmitMemoryHelper.cs')
-rw-r--r--ChocolArm64/Instructions/InstEmitMemoryHelper.cs21
1 files changed, 5 insertions, 16 deletions
diff --git a/ChocolArm64/Instructions/InstEmitMemoryHelper.cs b/ChocolArm64/Instructions/InstEmitMemoryHelper.cs
index 7645e363..c225cdd8 100644
--- a/ChocolArm64/Instructions/InstEmitMemoryHelper.cs
+++ b/ChocolArm64/Instructions/InstEmitMemoryHelper.cs
@@ -200,7 +200,7 @@ namespace ChocolArm64.Instructions
switch (size)
{
- case 2: context.EmitCall(typeof(Sse), nameof(Sse.LoadScalarVector128)); break;
+ case 2: context.EmitCall(typeof(Sse), nameof(Sse.LoadScalarVector128)); break;
case 3:
{
@@ -208,12 +208,10 @@ namespace ChocolArm64.Instructions
context.EmitCall(typeof(Sse2).GetMethod(nameof(Sse2.LoadScalarVector128), types));
- VectorHelper.EmitCall(context, nameof(VectorHelper.VectorDoubleToSingle));
-
break;
}
- case 4: context.EmitCall(typeof(Sse), nameof(Sse.LoadAlignedVector128)); break;
+ case 4: context.EmitCall(typeof(Sse), nameof(Sse.LoadAlignedVector128)); break;
throw new InvalidOperationException($"Invalid vector load size of {1 << size} bytes.");
}
@@ -283,18 +281,9 @@ namespace ChocolArm64.Instructions
switch (size)
{
- case 2: context.EmitCall(typeof(Sse), nameof(Sse.StoreScalar)); break;
-
- case 3:
- {
- VectorHelper.EmitCall(context, nameof(VectorHelper.VectorSingleToDouble));
-
- context.EmitCall(typeof(Sse2), nameof(Sse2.StoreScalar));
-
- break;
- }
-
- case 4: context.EmitCall(typeof(Sse), nameof(Sse.StoreAligned)); break;
+ case 2: context.EmitCall(typeof(Sse), nameof(Sse.StoreScalar)); break;
+ case 3: context.EmitCall(typeof(Sse2), nameof(Sse2.StoreScalar)); break;
+ case 4: context.EmitCall(typeof(Sse), nameof(Sse.StoreAligned)); break;
default: throw new InvalidOperationException($"Invalid vector store size of {1 << size} bytes.");
}