@@ -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