I am wondering whether is possible to simulate SIMD instruction set for specific unit test in dotnet core C# test project (MSTest).
Is it possible to somehow use Intel Intrinsics Emulator as suggested here?
Example:
Run test once with Avx2.IsSupported = true
, once with Avx2... = false, Ssse3... = true
and once with both set to false
.
[TestMethod]
public void Test_Reverse()
{
var buffer = ...;
var bufferCopy = ...;
SIMDHelper.Reverse(buffer);
AssertReversed...
}