public void RunClassFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario)); var result = Sse2.CompareGreaterThanOrEqualOrderedScalar(_fld1, _fld2); ValidateResult(_fld1, _fld2, result); }
public void RunStructLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario)); var test = TestStruct.Create(); var result = Sse2.CompareGreaterThanOrEqualOrderedScalar(test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, result); }
public void RunClassLclFldScenario() { TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario)); var test = new BooleanComparisonOpTest__CompareGreaterThanOrEqualOrderedScalarBoolean(); var result = Sse2.CompareGreaterThanOrEqualOrderedScalar(test._fld1, test._fld2); ValidateResult(test._fld1, test._fld2, result); }
public void RunLclVarScenario_LoadAligned() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned)); var left = Sse2.LoadAlignedVector128((Double *)(_dataTable.inArray1Ptr)); var right = Sse2.LoadAlignedVector128((Double *)(_dataTable.inArray2Ptr)); var result = Sse2.CompareGreaterThanOrEqualOrderedScalar(left, right); ValidateResult(left, right, result); }
public void RunLclVarScenario_UnsafeRead() { TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead)); var left = Unsafe.Read <Vector128 <Double> >(_dataTable.inArray1Ptr); var right = Unsafe.Read <Vector128 <Double> >(_dataTable.inArray2Ptr); var result = Sse2.CompareGreaterThanOrEqualOrderedScalar(left, right); ValidateResult(left, right, result); }
public void RunBasicScenario_Load() { TestLibrary.TestFramework.BeginScenario(nameof(RunBasicScenario_Load)); var result = Sse2.CompareGreaterThanOrEqualOrderedScalar( Sse2.LoadVector128((Double *)(_dataTable.inArray1Ptr)), Sse2.LoadVector128((Double *)(_dataTable.inArray2Ptr)) ); ValidateResult(_dataTable.inArray1Ptr, _dataTable.inArray2Ptr, result); }
static unsafe int Main(string[] args) { int testResult = Pass; int testsCount = 21; string methodUnderTestName = nameof(Sse2.CompareGreaterThanOrEqualOrderedScalar); if (Sse2.IsSupported) { using (var doubleTable = TestTableScalarSse2 <double, bool> .Create(testsCount, 2.0)) { for (int i = 0; i < testsCount; i++) { (Vector128 <double>, Vector128 <double>)value = doubleTable[i]; var result = Sse2.CompareGreaterThanOrEqualOrderedScalar(value.Item1, value.Item2); doubleTable.SetOutArray(result); } CheckMethodEightOne <double, bool> checkDouble = (Span <double> x, Span <double> y, bool z, ref bool a) => { a = x[0] >= y[0] ? true : false; return(a == z); }; if (!doubleTable.CheckResult(checkDouble)) { PrintError(doubleTable, methodUnderTestName, "(Span<double> x, Span<double> y, bool z, ref bool a) => CompareGreaterThanOrEqualOrderedScalar", checkDouble); testResult = Fail; } } } else { Console.WriteLine($"Sse2.IsSupported: {Sse2.IsSupported}, skipped tests of {typeof(Sse2)}.{methodUnderTestName}"); } return(testResult); }
public void RunStructFldScenario(BooleanComparisonOpTest__CompareGreaterThanOrEqualOrderedScalarBoolean testClass) { var result = Sse2.CompareGreaterThanOrEqualOrderedScalar(_fld1, _fld2); testClass.ValidateResult(_fld1, _fld2, result); }