Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/JIT/HardwareIntrinsics/X86/Sse2/MemoryFence.cs')
-rw-r--r--src/tests/JIT/HardwareIntrinsics/X86/Sse2/MemoryFence.cs24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/tests/JIT/HardwareIntrinsics/X86/Sse2/MemoryFence.cs b/src/tests/JIT/HardwareIntrinsics/X86/Sse2/MemoryFence.cs
index cd8308cef12..83642f193ac 100644
--- a/src/tests/JIT/HardwareIntrinsics/X86/Sse2/MemoryFence.cs
+++ b/src/tests/JIT/HardwareIntrinsics/X86/Sse2/MemoryFence.cs
@@ -7,31 +7,19 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Intrinsics.X86;
using System.Runtime.Intrinsics;
+using Xunit;
-namespace IntelHardwareIntrinsicTest
+namespace IntelHardwareIntrinsicTest.SSE2
{
- class Program
+ public partial class Program
{
- const int Pass = 100;
- const int Fail = 0;
-
- static unsafe int Main(string[] args)
+ [Fact]
+ public static unsafe void MemoryFence()
{
- int testResult = Pass;
-
if (Sse2.IsSupported)
{
- try
- {
- Sse2.MemoryFence();
- }
- catch
- {
- testResult = Fail;
- }
+ Sse2.MemoryFence();
}
-
- return testResult;
}
}
}