public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr)
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr))
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr))
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar1,
_clsVar2
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var left = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr);
var right = Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr);
var result = {Isa}.{Method}(left, right);
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var left = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right);
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var left = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new AlternatingBinaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld1, test._fld2);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld1, _fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld1, test._fld2);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr),
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)),
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)),
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof({Op3VectorType}<{Op3BaseType}>) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof({Op3VectorType}<{Op3BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof({Op3VectorType}<{Op3BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar1,
_clsVar2,
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var firstOp = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr);
var secondOp = Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr);
var thirdOp = Unsafe.Read<{Op3VectorType}<{Op3BaseType}>>(_dataTable.inArray3Ptr);
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var firstOp = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var secondOp = {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var thirdOp = {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(_dataTable.inArray3Ptr));
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var firstOp = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var secondOp = {LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var thirdOp = {LoadIsa}.LoadAligned{Op3VectorType}(({Op3BaseType}*)(_dataTable.inArray3Ptr));
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new AlternatingTernaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld1, test._fld2, test._fld3);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld1, _fld2, _fld3);
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld1, test._fld2, test._fld3);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr)
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr))
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr))
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var method = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) });
if (method != null)
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var method = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) });
if (method != null)
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var method = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) });
if (method != null)
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar1,
_clsVar2
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var left = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr);
var right = Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr);
var result = {Isa}.{Method}(left, right);
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var left = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right);
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var left = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new BooleanBinaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld1, test._fld2);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld1, _fld2);
ValidateResult(_fld1, _fld2, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld1, test._fld2);
ValidateResult(test._fld1, test._fld2, result);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr)
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr))
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr))
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar1,
_clsVar2
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var left = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr);
var right = Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr);
var result = {Isa}.{Method}(left, right);
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var left = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right);
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var left = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new BooleanComparisonOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld1, test._fld2);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld1, _fld2);
ValidateResult(_fld1, _fld2, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld1, test._fld2);
ValidateResult(test._fld1, test._fld2, result);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr)
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr))
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr))
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var method = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) });
if (method != null)
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var method = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) });
if (method != null)
}
public void RunReflectionScenario_LoadAligned()
- {var method = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) });
+ {
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
+ var method = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) });
if (method != null)
{
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar1,
_clsVar2
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var left = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr);
var right = Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr);
var result = {Isa}.{Method}(left, right);
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var left = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right);
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var left = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new BooleanTwoComparisonOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld1, test._fld2);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld1, _fld2);
ValidateResult(_fld1, _fld2, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld1, test._fld2);
ValidateResult(test._fld1, test._fld2, result);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr)
);
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
);
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
);
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr)
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar
);
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var value = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr);
var result = {Isa}.{Method}(value);
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var value = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(value);
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var value = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(value);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new BooleanUnaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld);
ValidateResult(_fld, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld);
ValidateResult(test._fld, result);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr),
{Imm}
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
{Imm}
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
{Imm}
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar,
{Imm}
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var firstOp = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr);
var result = {Isa}.{Method}(firstOp, {Imm});
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var firstOp = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(firstOp, {Imm});
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var firstOp = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(firstOp, {Imm});
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new ExtractScalarTest__{Method}{RetBaseType}{Imm}();
var result = {Isa}.{Method}(test._fld, {Imm});
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld, {Imm});
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld, {Imm});
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
{Isa}.{Method}(
({Op1BaseType}*)_dataTable.outArrayPtr,
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr),
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
{Isa}.{Method}(
({Op1BaseType}*)_dataTable.outArrayPtr,
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
{Isa}.{Method}(
({Op1BaseType}*)_dataTable.outArrayPtr,
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1BaseType}*), typeof({Op1VectorType}<{Op1BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
Pointer.Box(_dataTable.outArrayPtr, typeof({Op1BaseType}*)),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1BaseType}*), typeof({Op1VectorType}<{Op1BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
Pointer.Box(_dataTable.outArrayPtr, typeof({Op1BaseType}*)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1BaseType}*), typeof({Op1VectorType}<{Op1BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
Pointer.Box(_dataTable.outArrayPtr, typeof({Op1BaseType}*)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
{Isa}.{Method}(
({Op1BaseType}*)_dataTable.outArrayPtr,
_clsVar,
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var firstOp = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr);
{Isa}.{Method}(({Op1BaseType}*)_dataTable.outArrayPtr, firstOp, {Imm});
ValidateResult(firstOp, _dataTable.outArrayPtr);
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var firstOp = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
{Isa}.{Method}(({Op1BaseType}*)_dataTable.outArrayPtr, firstOp, {Imm});
ValidateResult(firstOp, _dataTable.outArrayPtr);
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var firstOp = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
{Isa}.{Method}(({Op1BaseType}*)_dataTable.outArrayPtr, firstOp, {Imm});
ValidateResult(firstOp, _dataTable.outArrayPtr);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new ExtractStoreTest__{Method}{RetBaseType}{Imm}();
{Isa}.{Method}(({Op1BaseType}*)_dataTable.outArrayPtr, test._fld, {Imm});
ValidateResult(test._fld, _dataTable.outArrayPtr);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
{Isa}.{Method}(({Op1BaseType}*)_dataTable.outArrayPtr, _fld, {Imm});
ValidateResult(_fld, _dataTable.outArrayPtr);
}
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
{Isa}.{Method}(({Op1BaseType}*)_dataTable.outArrayPtr, test._fld, {Imm});
ValidateResult(test._fld, _dataTable.outArrayPtr);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr),
{Imm}
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
{Imm}
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
{Imm}
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar,
{Imm}
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var firstOp = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr);
var result = {Isa}.{Method}(firstOp, {Imm});
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var firstOp = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(firstOp, {Imm});
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var firstOp = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(firstOp, {Imm});
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new ExtractVector128Test__{Method}{RetBaseType}{Imm}();
var result = {Isa}.{Method}(test._fld, {Imm});
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld, {Imm});
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld, {Imm});
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}<{RetBaseType}>(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr)
);
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}<{RetBaseType}>(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
);
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}<{RetBaseType}>(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
);
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}))
.MakeGenericMethod( new Type[] { typeof({Op1BaseType}) })
.Invoke(null, new object[] {
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}))
.MakeGenericMethod( new Type[] { typeof({Op1BaseType}) })
.Invoke(null, new object[] {
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}))
.MakeGenericMethod( new Type[] { typeof({Op1BaseType}) })
.Invoke(null, new object[] {
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}<{RetBaseType}>(
_clsVar
);
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var firstOp = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr);
var result = {Isa}.{Method}<{RetBaseType}>(firstOp);
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var firstOp = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}<{RetBaseType}>(firstOp);
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var firstOp = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}<{RetBaseType}>(firstOp);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new GenericUnaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}<{RetBaseType}>(test._fld);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}<{RetBaseType}>(_fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr)
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr))
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr))
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar1,
_clsVar2
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var left = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr);
var right = Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr);
var result = {Isa}.{Method}(left, right);
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var left = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right);
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var left = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new HorizontalBinaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld1, test._fld2);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld1, _fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld1, test._fld2);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr),
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)),
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)),
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar1,
_clsVar2,
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var left = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr);
var right = Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr);
var result = {Isa}.{Method}(left, right, {Imm});
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var left = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right, {Imm});
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var left = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right, {Imm});
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new ImmBinaryOpTest__{Method}{RetBaseType}{Imm}();
var result = {Isa}.{Method}(test._fld1, test._fld2, {Imm});
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld1, _fld2, {Imm});
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld1, test._fld2, {Imm});
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr),
{Imm}
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
{Imm}
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
{Imm}
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar,
{Imm}
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var firstOp = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr);
var result = {Isa}.{Method}(firstOp, {Imm});
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var firstOp = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(firstOp, {Imm});
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var firstOp = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(firstOp, {Imm});
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new ImmUnaryOpTest__{Method}{RetBaseType}{Imm}();
var result = {Isa}.{Method}(test._fld, {Imm});
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld, {Imm});
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld, {Imm});
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
({Op2BaseType}*)_dataTable.inArray2Ptr,
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
({Op2BaseType}*)(_dataTable.inArray2Ptr),
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
({Op2BaseType}*)(_dataTable.inArray2Ptr),
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2BaseType}*), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2BaseType}*), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2BaseType}*), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar1,
({Op2BaseType}*)_dataTable.inArray2Ptr,
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var left = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr);
var right = ({Op2BaseType}*)_dataTable.inArray2Ptr;
var result = {Isa}.{Method}(left, right, {Imm});
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var left = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = ({Op2BaseType}*)(_dataTable.inArray2Ptr);
var result = {Isa}.{Method}(left, right, {Imm});
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var left = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = ({Op2BaseType}*)(_dataTable.inArray2Ptr);
var result = {Isa}.{Method}(left, right, {Imm});
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new InsertLoadTest__{Method}{RetBaseType}{Imm}();
var result = {Isa}.{Method}(test._fld1, ({Op2BaseType}*)(_dataTable.inArray2Ptr), {Imm});
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld1, ({Op2BaseType}*)(_dataTable.inArray2Ptr), {Imm});
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld1, ({Op2BaseType}*)(_dataTable.inArray2Ptr), {Imm});
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr),
{Data},
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
{Data},
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
{Data},
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({RetBaseType}), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({RetBaseType}), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({RetBaseType}), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar,
{Data},
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var firstOp = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr);
var result = {Isa}.{Method}(firstOp, {Data}, {Imm});
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var firstOp = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(firstOp, {Data}, {Imm});
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var firstOp = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(firstOp, {Data}, {Imm});
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new InsertScalarTest__{Method}{RetBaseType}{Imm}();
var result = {Isa}.{Method}(test._fld, {Data}, {Imm});
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld, {Data}, {Imm});
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld, {Data}, {Imm});
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr),
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)),
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)),
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof(byte) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar1,
_clsVar2,
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var left = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr);
var right = Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr);
var result = {Isa}.{Method}(left, right, {Imm});
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var left = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right, {Imm});
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var left = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right, {Imm});
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new InsertVector128Test__{Method}{RetBaseType}{Imm}();
var result = {Isa}.{Method}(test._fld1, test._fld2, {Imm});
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld1, _fld2, {Imm});
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld1, test._fld2, {Imm});
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.ReadUnaligned<{Op1BaseType}>(ref Unsafe.As<{Op1BaseType}, byte>(ref _data1)),
Unsafe.ReadUnaligned<{Op2BaseType}>(ref Unsafe.As<{Op2BaseType}, byte>(ref _data2))
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1BaseType}), typeof({Op2BaseType}) })
.Invoke(null, new object[] {
Unsafe.ReadUnaligned<{Op1BaseType}>(ref Unsafe.As<{Op1BaseType}, byte>(ref _data1)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar1,
_clsVar2
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var data1 = Unsafe.ReadUnaligned<{Op1BaseType}>(ref Unsafe.As<{Op1BaseType}, byte>(ref _data1));
var data2 = Unsafe.ReadUnaligned<{Op2BaseType}>(ref Unsafe.As<{Op1BaseType}, byte>(ref _data2));
var result = {Isa}.{Method}(data1, data2);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new ScalarBinaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld1, test._fld2);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld1, _fld2);
ValidateResult(_fld1, _fld2, result);
}
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld1, test._fld2);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.ReadUnaligned<{Op1BaseType}>(ref Unsafe.As<{Op1BaseType}, byte>(ref _data))
);
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1BaseType}) })
.Invoke(null, new object[] {
Unsafe.ReadUnaligned<{Op1BaseType}>(ref Unsafe.As<{Op1BaseType}, byte>(ref _data))
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar
);
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var data = Unsafe.ReadUnaligned<{Op1BaseType}>(ref Unsafe.As<{Op1BaseType}, byte>(ref _data));
var result = {Isa}.{Method}(data);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new ScalarSimdUnaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.ReadUnaligned<{Op1BaseType}>(ref Unsafe.As<{Op1BaseType}, byte>(ref _data))
);
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1BaseType}) })
.Invoke(null, new object[] {
Unsafe.ReadUnaligned<{Op1BaseType}>(ref Unsafe.As<{Op1BaseType}, byte>(ref _data))
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar
);
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var data = Unsafe.ReadUnaligned<{Op1BaseType}>(ref Unsafe.As<{Op1BaseType}, byte>(ref _data));
var result = {Isa}.{Method}(data);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new ScalarUnaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld);
ValidateResult(_fld, result);
}
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr)
);
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
);
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
);
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr)
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar
);
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var firstOp = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr);
var result = {Isa}.{Method}(firstOp);
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var firstOp = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(firstOp);
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var firstOp = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(firstOp);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new SimdScalarUnaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld);
ValidateResult(_fld, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr)
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr))
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr))
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar1,
_clsVar2
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var left = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr);
var right = Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr);
var result = {Isa}.{Method}(left, right);
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var left = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right);
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var left = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var right = {LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var result = {Isa}.{Method}(left, right);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new SimpleBinaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld1, test._fld2);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld1, _fld2);
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld1, test._fld2);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr),
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)),
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
{LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr)),
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof({Op3VectorType}<{Op3BaseType}>) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr),
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof({Op3VectorType}<{Op3BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>), typeof({Op2VectorType}<{Op2BaseType}>), typeof({Op3VectorType}<{Op3BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr)),
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar1,
_clsVar2,
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var firstOp = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArray1Ptr);
var secondOp = Unsafe.Read<{Op2VectorType}<{Op2BaseType}>>(_dataTable.inArray2Ptr);
var thirdOp = Unsafe.Read<{Op3VectorType}<{Op3BaseType}>>(_dataTable.inArray3Ptr);
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var firstOp = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var secondOp = {LoadIsa}.Load{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var thirdOp = {LoadIsa}.Load{Op3VectorType}(({Op3BaseType}*)(_dataTable.inArray3Ptr));
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var firstOp = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArray1Ptr));
var secondOp = {LoadIsa}.LoadAligned{Op2VectorType}(({Op2BaseType}*)(_dataTable.inArray2Ptr));
var thirdOp = {LoadIsa}.LoadAligned{Op3VectorType}(({Op3BaseType}*)(_dataTable.inArray3Ptr));
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new SimpleTernaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld1, test._fld2, test._fld3);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld1, _fld2, _fld3);
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld1, test._fld2, test._fld3);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try
public void RunBasicScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_UnsafeRead));
+
var result = {Isa}.{Method}(
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr)
);
public void RunBasicScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load));
+
var result = {Isa}.{Method}(
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
);
public void RunBasicScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_LoadAligned));
+
var result = {Isa}.{Method}(
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
);
public void RunReflectionScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_UnsafeRead));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>) })
.Invoke(null, new object[] {
Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr)
public void RunReflectionScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_Load));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
public void RunReflectionScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunReflectionScenario_LoadAligned));
+
var result = typeof({Isa}).GetMethod(nameof({Isa}.{Method}), new Type[] { typeof({Op1VectorType}<{Op1BaseType}>) })
.Invoke(null, new object[] {
{LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr))
public void RunClsVarScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClsVarScenario));
+
var result = {Isa}.{Method}(
_clsVar
);
public void RunLclVarScenario_UnsafeRead()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));
+
var firstOp = Unsafe.Read<{Op1VectorType}<{Op1BaseType}>>(_dataTable.inArrayPtr);
var result = {Isa}.{Method}(firstOp);
public void RunLclVarScenario_Load()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));
+
var firstOp = {LoadIsa}.Load{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(firstOp);
public void RunLclVarScenario_LoadAligned()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));
+
var firstOp = {LoadIsa}.LoadAligned{Op1VectorType}(({Op1BaseType}*)(_dataTable.inArrayPtr));
var result = {Isa}.{Method}(firstOp);
public void RunClassLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));
+
var test = new SimpleUnaryOpTest__{Method}{RetBaseType}();
var result = {Isa}.{Method}(test._fld);
public void RunClassFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));
+
var result = {Isa}.{Method}(_fld);
Unsafe.Write(_dataTable.outArrayPtr, result);
public void RunStructLclFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));
+
var test = TestStruct.Create();
var result = {Isa}.{Method}(test._fld);
public void RunStructFldScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunStructFldScenario));
+
var test = TestStruct.Create();
test.RunStructFldScenario(this);
}
public void RunUnsupportedScenario()
{
+ TestLibrary.TestFramework.BeginScenario(nameof(RunUnsupportedScenario));
+
Succeeded = false;
try