2018-05-11 19:10:27 -04:00
|
|
|
using System.Runtime.Intrinsics.X86;
|
|
|
|
|
2018-02-08 22:26:20 -05:00
|
|
|
public static class AOptimizations
|
|
|
|
{
|
2018-04-22 00:21:49 -04:00
|
|
|
public static bool GenerateCallStack = true;
|
2018-05-11 19:10:27 -04:00
|
|
|
|
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
2018-06-25 21:32:29 -04:00
|
|
|
private static bool UseAllSseIfAvailable = true;
|
2018-05-11 19:10:27 -04:00
|
|
|
|
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
2018-06-25 21:32:29 -04:00
|
|
|
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;
|
2018-02-08 22:26:20 -05:00
|
|
|
}
|