From 51b074a0033984d1e4ef225b0025d7bb45567080 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Tue, 20 Feb 2018 12:09:07 +0000 Subject: COMPMID-764 Removed reciprocal QS tests Also fixed issues with some test names Change-Id: I7f35932eb24bedbb645b4b534d7d1bb1342f3696 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/121259 Reviewed-by: Georgios Pinitas Tested-by: Jenkins --- tests/validation/NEON/FixedPoint/FixedPoint.cpp | 38 +++++-------------------- 1 file changed, 7 insertions(+), 31 deletions(-) (limited to 'tests/validation/NEON') diff --git a/tests/validation/NEON/FixedPoint/FixedPoint.cpp b/tests/validation/NEON/FixedPoint/FixedPoint.cpp index 871143bc19..a583b587ae 100644 --- a/tests/validation/NEON/FixedPoint/FixedPoint.cpp +++ b/tests/validation/NEON/FixedPoint/FixedPoint.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017 ARM Limited. + * Copyright (c) 2017-2018 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -43,14 +43,12 @@ namespace validation { namespace { -constexpr AbsoluteTolerance tolerance_exp_qs8(0.0f); /**< Tolerance value for comparing reference's output against implementation's output (exponential) for DataType::QS8 */ -constexpr AbsoluteTolerance tolerance_exp_qs16(1.0f); /**< Tolerance value for comparing reference's output against implementation's output (exponential) for DataType::QS16 */ -constexpr AbsoluteTolerance tolerance_invsqrt_qs8(4.0f); /**< Tolerance value for comparing reference's output against implementation's output (inverse square-root) for DataType::QS8 */ -constexpr AbsoluteTolerance tolerance_invsqrt_qs16(5.0f); /**< Tolerance value for comparing reference's output against implementation's output (inverse square-root) for DataType::QS16 */ -constexpr AbsoluteTolerance tolerance_log_qs8(5.0f); /**< Tolerance value for comparing reference's output against implementation's output (logarithm) for DataType::QS8 */ -constexpr AbsoluteTolerance tolerance_log_qs16(7.0f); /**< Tolerance value for comparing reference's output against implementation's output (logarithm) for DataType::QS16 */ -constexpr AbsoluteTolerance tolerance_reciprocal_qs8(3); /**< Tolerance value for comparing reference's output against implementation's output (reciprocal) for DataType::QS8 */ -constexpr AbsoluteTolerance tolerance_reciprocal_qs16(11.0f); /**< Tolerance value for comparing reference's output against implementation's output (reciprocal) for DataType::QS16 */ +constexpr AbsoluteTolerance tolerance_exp_qs8(0.0f); /**< Tolerance value for comparing reference's output against implementation's output (exponential) for DataType::QS8 */ +constexpr AbsoluteTolerance tolerance_exp_qs16(1.0f); /**< Tolerance value for comparing reference's output against implementation's output (exponential) for DataType::QS16 */ +constexpr AbsoluteTolerance tolerance_invsqrt_qs8(4.0f); /**< Tolerance value for comparing reference's output against implementation's output (inverse square-root) for DataType::QS8 */ +constexpr AbsoluteTolerance tolerance_invsqrt_qs16(5.0f); /**< Tolerance value for comparing reference's output against implementation's output (inverse square-root) for DataType::QS16 */ +constexpr AbsoluteTolerance tolerance_log_qs8(5.0f); /**< Tolerance value for comparing reference's output against implementation's output (logarithm) for DataType::QS8 */ +constexpr AbsoluteTolerance tolerance_log_qs16(7.0f); /**< Tolerance value for comparing reference's output against implementation's output (logarithm) for DataType::QS16 */ } // namespace TEST_SUITE(NEON) @@ -92,17 +90,6 @@ FIXTURE_DATA_TEST_CASE(RunSmall, NEFixedPointFixture, framework::Dataset validate(Accessor(_target), _reference, tolerance_log_qs8, 0); } TEST_SUITE_END() - -TEST_SUITE(Reciprocal) -FIXTURE_DATA_TEST_CASE(RunSmall, NEFixedPointFixture, framework::DatasetMode::ALL, combine(combine(combine(datasets::Small1DShapes(), framework::dataset::make("DataType", - DataType::QS8)), - framework::dataset::make("FixedPointOp", FixedPointOp::RECIPROCAL)), - framework::dataset::make("FractionalBits", 1, 6))) -{ - // Validate output - validate(Accessor(_target), _reference, tolerance_reciprocal_qs8, 0); -} -TEST_SUITE_END() TEST_SUITE_END() TEST_SUITE(QS16) @@ -139,17 +126,6 @@ FIXTURE_DATA_TEST_CASE(RunSmall, NEFixedPointFixture, framework::Datase validate(Accessor(_target), _reference, tolerance_log_qs16, 0); } TEST_SUITE_END() - -TEST_SUITE(Reciprocal) -FIXTURE_DATA_TEST_CASE(RunSmall, NEFixedPointFixture, framework::DatasetMode::ALL, combine(combine(combine(datasets::Small1DShapes(), framework::dataset::make("DataType", - DataType::QS16)), - framework::dataset::make("FixedPointOp", FixedPointOp::RECIPROCAL)), - framework::dataset::make("FractionalBits", 1, 14))) -{ - // Validate output - validate(Accessor(_target), _reference, tolerance_reciprocal_qs16, 0); -} -TEST_SUITE_END() TEST_SUITE_END() TEST_SUITE_END() -- cgit v1.2.1