aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/AOptimizations.cs
diff options
context:
space:
mode:
authorLDj3SNuD <35856442+LDj3SNuD@users.noreply.github.com>2018-06-26 03:32:29 +0200
committergdkchan <gab.dark.100@gmail.com>2018-06-25 22:32:29 -0300
commit8f6387128ad6fc6a6106d1347f86ea97e549f5a2 (patch)
tree3d14d93182910d614cdcbf01962752e635ded1c9 /ChocolArm64/AOptimizations.cs
parent37a6e84fd49a4e73747281e92d795c5401be901e (diff)
Add Sse Opt. for Cmeq_V_2D, Cmgt_V_2D (Reg). Add Sse Opt. for Crc32cb, Crc32ch, Crc32cw, Crc32cx. Add 10 simple tests for Fcmgt, Fcmge, Fcmeq, Fcmle, Fcmlt (S, V) (Reg, Zero). Add 2 Cnt_V tests. (#183)
* Add files via upload * Add files via upload * Add files via upload * CPE * Add EmitSse42Crc32() * Update CpuTestSimdCmp.cs * Update Pseudocode.cs * Update Instructions.cs * Update CpuTestSimd.cs * Update Instructions.cs
Diffstat (limited to 'ChocolArm64/AOptimizations.cs')
-rw-r--r--ChocolArm64/AOptimizations.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/ChocolArm64/AOptimizations.cs b/ChocolArm64/AOptimizations.cs
index e8c1f7c4..800cf363 100644
--- a/ChocolArm64/AOptimizations.cs
+++ b/ChocolArm64/AOptimizations.cs
@@ -6,7 +6,15 @@ public static class AOptimizations
public static bool GenerateCallStack = true;
- public static bool UseSse2IfAvailable = true;
+ private static bool UseAllSseIfAvailable = true;
- internal static bool UseSse2 = UseSse2IfAvailable && Sse2.IsSupported;
+ private static bool UseSseIfAvailable = true;
+ private static bool UseSse2IfAvailable = true;
+ private static bool UseSse41IfAvailable = true;
+ private static bool UseSse42IfAvailable = true;
+
+ internal static bool UseSse = (UseAllSseIfAvailable && UseSseIfAvailable) && Sse.IsSupported;
+ internal static bool UseSse2 = (UseAllSseIfAvailable && UseSse2IfAvailable) && Sse2.IsSupported;
+ internal static bool UseSse41 = (UseAllSseIfAvailable && UseSse41IfAvailable) && Sse41.IsSupported;
+ internal static bool UseSse42 = (UseAllSseIfAvailable && UseSse42IfAvailable) && Sse42.IsSupported;
} \ No newline at end of file