Пример #1
0
        public void RunClassFldScenario()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario));

            var result = Sse2.CompareScalarUnorderedLessThanOrEqual(_fld1, _fld2);

            ValidateResult(_fld1, _fld2, result);
        }
Пример #2
0
        public void RunStructLclFldScenario()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario));

            var test   = TestStruct.Create();
            var result = Sse2.CompareScalarUnorderedLessThanOrEqual(test._fld1, test._fld2);

            ValidateResult(test._fld1, test._fld2, result);
        }
Пример #3
0
        public void RunClassLclFldScenario()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario));

            var test   = new BooleanBinaryOpTest__CompareScalarUnorderedLessThanOrEqualBoolean();
            var result = Sse2.CompareScalarUnorderedLessThanOrEqual(test._fld1, test._fld2);

            ValidateResult(test._fld1, test._fld2, result);
        }
Пример #4
0
        public void RunLclVarScenario_LoadAligned()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_LoadAligned));

            var op1    = Sse2.LoadAlignedVector128((Double *)(_dataTable.inArray1Ptr));
            var op2    = Sse2.LoadAlignedVector128((Double *)(_dataTable.inArray2Ptr));
            var result = Sse2.CompareScalarUnorderedLessThanOrEqual(op1, op2);

            ValidateResult(op1, op2, result);
        }
Пример #5
0
        public void RunLclVarScenario_UnsafeRead()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_UnsafeRead));

            var op1    = Unsafe.Read <Vector128 <Double> >(_dataTable.inArray1Ptr);
            var op2    = Unsafe.Read <Vector128 <Double> >(_dataTable.inArray2Ptr);
            var result = Sse2.CompareScalarUnorderedLessThanOrEqual(op1, op2);

            ValidateResult(op1, op2, result);
        }
Пример #6
0
        public void RunLclVarScenario_Load()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunLclVarScenario_Load));

            var left   = Sse2.LoadVector128((Double *)(_dataTable.inArray1Ptr));
            var right  = Sse2.LoadVector128((Double *)(_dataTable.inArray2Ptr));
            var result = Sse2.CompareScalarUnorderedLessThanOrEqual(left, right);

            ValidateResult(left, right, result);
        }
Пример #7
0
        public void RunStructLclFldScenario_Load()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunStructLclFldScenario_Load));

            var test   = TestStruct.Create();
            var result = Sse2.CompareScalarUnorderedLessThanOrEqual(
                Sse2.LoadVector128((Double *)(&test._fld1)),
                Sse2.LoadVector128((Double *)(&test._fld2))
                );

            ValidateResult(test._fld1, test._fld2, result);
        }
Пример #8
0
            public void RunStructFldScenario_Load(BooleanBinaryOpTest__CompareScalarUnorderedLessThanOrEqualBoolean testClass)
            {
                fixed(Vector128 <Double> *pFld1 = &_fld1)
                fixed(Vector128 <Double> *pFld2 = &_fld2)
                {
                    var result = Sse2.CompareScalarUnorderedLessThanOrEqual(
                        Sse2.LoadVector128((Double *)(pFld1)),
                        Sse2.LoadVector128((Double *)(pFld2))
                        );

                    testClass.ValidateResult(_fld1, _fld2, result);
                }
            }
Пример #9
0
        public void RunClassFldScenario_Load()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunClassFldScenario_Load));

            fixed(Vector128 <Double> *pFld1 = &_fld1)
            fixed(Vector128 <Double> *pFld2 = &_fld2)
            {
                var result = Sse2.CompareScalarUnorderedLessThanOrEqual(
                    Sse2.LoadVector128((Double *)(pFld1)),
                    Sse2.LoadVector128((Double *)(pFld2))
                    );

                ValidateResult(_fld1, _fld2, result);
            }
        }
Пример #10
0
        public void RunClassLclFldScenario_Load()
        {
            TestLibrary.TestFramework.BeginScenario(nameof(RunClassLclFldScenario_Load));

            var test = new BooleanBinaryOpTest__CompareScalarUnorderedLessThanOrEqualBoolean();

            fixed(Vector128 <Double> *pFld1 = &test._fld1)
            fixed(Vector128 <Double> *pFld2 = &test._fld2)
            {
                var result = Sse2.CompareScalarUnorderedLessThanOrEqual(
                    Sse2.LoadVector128((Double *)(pFld1)),
                    Sse2.LoadVector128((Double *)(pFld2))
                    );

                ValidateResult(test._fld1, test._fld2, result);
            }
        }
Пример #11
0
            public void RunStructFldScenario(BooleanBinaryOpTest__CompareScalarUnorderedLessThanOrEqualBoolean testClass)
            {
                var result = Sse2.CompareScalarUnorderedLessThanOrEqual(_fld1, _fld2);

                testClass.ValidateResult(_fld1, _fld2, result);
            }