From 28dc056d831adcec0d47a332bf638abf5f3ff1f3 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Wed, 28 Oct 2020 01:08:53 +0000 Subject: [PATCH] Fix coverage --- src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs | 2 +- tests/ImageSharp.Tests/Common/SimdUtilsTests.Shuffle.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs b/src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs index 0ea17c7706..367df03ec3 100644 --- a/src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs +++ b/src/ImageSharp/Common/Helpers/SimdUtils.HwIntrinsics.cs @@ -74,7 +74,7 @@ namespace SixLabors.ImageSharp if (Avx2.IsSupported || Ssse3.IsSupported) { int remainder; - if (Avx.IsSupported) + if (Avx2.IsSupported) { remainder = ImageMaths.ModuloP2(source.Length, Vector256.Count); } diff --git a/tests/ImageSharp.Tests/Common/SimdUtilsTests.Shuffle.cs b/tests/ImageSharp.Tests/Common/SimdUtilsTests.Shuffle.cs index cdb6a86dfc..94298f94ca 100644 --- a/tests/ImageSharp.Tests/Common/SimdUtilsTests.Shuffle.cs +++ b/tests/ImageSharp.Tests/Common/SimdUtilsTests.Shuffle.cs @@ -44,7 +44,7 @@ namespace SixLabors.ImageSharp.Tests.Common FeatureTestRunner.RunWithHwIntrinsicsFeature( RunTest, control, - HwIntrinsics.AllowAll | HwIntrinsics.DisableAVX2 | HwIntrinsics.DisableSSE); + HwIntrinsics.AllowAll | HwIntrinsics.DisableAVX | HwIntrinsics.DisableSSE); } [Theory]