Skip to content

Commit 2ba3699

Browse files
committed
Do not run Vector256 tests on arm
1 parent 5832895 commit 2ba3699

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/ImageSharp.Tests/PixelFormats/PixelBlenders/PorterDuffFunctionsTests.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public void NormalBlendFunction(TestVector4 back, TestVector4 source, float amou
3232
[MemberData(nameof(NormalBlendFunctionData))]
3333
public void NormalBlendFunction256(TestVector4 back, TestVector4 source, float amount, TestVector4 expected)
3434
{
35+
if (!Avx.IsSupported)
36+
{
37+
return;
38+
}
39+
3540
Vector256<float> back256 = Vector256.Create(back.X, back.Y, back.Z, back.W, back.X, back.Y, back.Z, back.W);
3641
Vector256<float> source256 = Vector256.Create(source.X, source.Y, source.Z, source.W, source.X, source.Y, source.Z, source.W);
3742

@@ -59,6 +64,11 @@ public void MultiplyFunction(TestVector4 back, TestVector4 source, float amount,
5964
[MemberData(nameof(MultiplyFunctionData))]
6065
public void MultiplyFunction256(TestVector4 back, TestVector4 source, float amount, TestVector4 expected)
6166
{
67+
if (!Avx.IsSupported)
68+
{
69+
return;
70+
}
71+
6272
Vector256<float> back256 = Vector256.Create(back.X, back.Y, back.Z, back.W, back.X, back.Y, back.Z, back.W);
6373
Vector256<float> source256 = Vector256.Create(source.X, source.Y, source.Z, source.W, source.X, source.Y, source.Z, source.W);
6474

0 commit comments

Comments
 (0)