From 2ba36999787ba390da6a2b081e19dc4beea28dac Mon Sep 17 00:00:00 2001 From: Stefan Nikolei Date: Mon, 13 Mar 2023 09:19:21 +0100 Subject: [PATCH] Do not run Vector256 tests on arm --- .../PixelBlenders/PorterDuffFunctionsTests.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/ImageSharp.Tests/PixelFormats/PixelBlenders/PorterDuffFunctionsTests.cs b/tests/ImageSharp.Tests/PixelFormats/PixelBlenders/PorterDuffFunctionsTests.cs index f46c2e9702..976a272ebf 100644 --- a/tests/ImageSharp.Tests/PixelFormats/PixelBlenders/PorterDuffFunctionsTests.cs +++ b/tests/ImageSharp.Tests/PixelFormats/PixelBlenders/PorterDuffFunctionsTests.cs @@ -32,6 +32,11 @@ public class PorterDuffFunctionsTests [MemberData(nameof(NormalBlendFunctionData))] public void NormalBlendFunction256(TestVector4 back, TestVector4 source, float amount, TestVector4 expected) { + if (!Avx.IsSupported) + { + return; + } + Vector256 back256 = Vector256.Create(back.X, back.Y, back.Z, back.W, back.X, back.Y, back.Z, back.W); Vector256 source256 = Vector256.Create(source.X, source.Y, source.Z, source.W, source.X, source.Y, source.Z, source.W); @@ -59,6 +64,11 @@ public class PorterDuffFunctionsTests [MemberData(nameof(MultiplyFunctionData))] public void MultiplyFunction256(TestVector4 back, TestVector4 source, float amount, TestVector4 expected) { + if (!Avx.IsSupported) + { + return; + } + Vector256 back256 = Vector256.Create(back.X, back.Y, back.Z, back.W, back.X, back.Y, back.Z, back.W); Vector256 source256 = Vector256.Create(source.X, source.Y, source.Z, source.W, source.X, source.Y, source.Z, source.W);