Skip to content

Commit 7f2b7c8

Browse files
authored
another small correction (#52)
* another small correction * saving...
1 parent 48a22a3 commit 7f2b7c8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/UTF8ValidationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ private static bool IsSystemSupported(TestSystemRequirements requiredSystems)
5151
switch (RuntimeInformation.ProcessArchitecture)
5252
{
5353
case Architecture.Arm64:
54-
return requiredSystems.HasFlag(TestSystemRequirements.Arm64);
54+
return requiredSystems.HasFlag(TestSystemRequirements.Arm64) && AdvSimd.Arm64.IsSupported && BitConverter.IsLittleEndian;
5555
case Architecture.X64:
5656
return (requiredSystems.HasFlag(TestSystemRequirements.X64Avx512) && Vector512.IsHardwareAccelerated && System.Runtime.Intrinsics.X86.Avx512F.IsSupported) ||
5757
(requiredSystems.HasFlag(TestSystemRequirements.X64Avx2) && System.Runtime.Intrinsics.X86.Avx2.IsSupported) ||
58-
(requiredSystems.HasFlag(TestSystemRequirements.X64Sse) && System.Runtime.Intrinsics.X86.Sse.IsSupported);
58+
(requiredSystems.HasFlag(TestSystemRequirements.X64Sse) && System.Runtime.Intrinsics.X86.Ssse3.IsSupported);
5959
default:
6060
return false; // If architecture is not covered above, the test is not supported.
6161
}

0 commit comments

Comments
 (0)