@@ -32,6 +32,11 @@ public void NormalBlendFunction(TestVector4 back, TestVector4 source, float amou
32
32
[ MemberData ( nameof ( NormalBlendFunctionData ) ) ]
33
33
public void NormalBlendFunction256 ( TestVector4 back , TestVector4 source , float amount , TestVector4 expected )
34
34
{
35
+ if ( ! Avx . IsSupported )
36
+ {
37
+ return ;
38
+ }
39
+
35
40
Vector256 < float > back256 = Vector256 . Create ( back . X , back . Y , back . Z , back . W , back . X , back . Y , back . Z , back . W ) ;
36
41
Vector256 < float > source256 = Vector256 . Create ( source . X , source . Y , source . Z , source . W , source . X , source . Y , source . Z , source . W ) ;
37
42
@@ -59,6 +64,11 @@ public void MultiplyFunction(TestVector4 back, TestVector4 source, float amount,
59
64
[ MemberData ( nameof ( MultiplyFunctionData ) ) ]
60
65
public void MultiplyFunction256 ( TestVector4 back , TestVector4 source , float amount , TestVector4 expected )
61
66
{
67
+ if ( ! Avx . IsSupported )
68
+ {
69
+ return ;
70
+ }
71
+
62
72
Vector256 < float > back256 = Vector256 . Create ( back . X , back . Y , back . Z , back . W , back . X , back . Y , back . Z , back . W ) ;
63
73
Vector256 < float > source256 = Vector256 . Create ( source . X , source . Y , source . Z , source . W , source . X , source . Y , source . Z , source . W ) ;
64
74
0 commit comments