From ebea247d321193de2a7cf7aa63aa3fba97286773 Mon Sep 17 00:00:00 2001 From: Marcin Hajder Date: Tue, 20 Jun 2023 11:46:13 +0200 Subject: [PATCH] Corrected missing implicit test lost after modernization corrections --- .../conversions/basic_test_conversions.cpp | 4 ++-- .../conversions/basic_test_conversions.h | 16 ++++++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/test_conformance/conversions/basic_test_conversions.cpp b/test_conformance/conversions/basic_test_conversions.cpp index 4571be3c38..ffdb948aca 100644 --- a/test_conformance/conversions/basic_test_conversions.cpp +++ b/test_conformance/conversions/basic_test_conversions.cpp @@ -450,12 +450,12 @@ cl_int ConversionsTest::SetUp(int elements) template void ConversionsTest::TestTypesConversion(const Type &inType, - const Type &outType, int &testNumber) + const Type &outType, int &testNumber, + int startMinVectorSize) { SaturationMode sat; RoundingMode round; int error; - int startMinVectorSize = gMinVectorSize; // skip longs on embedded if (!gHasLong diff --git a/test_conformance/conversions/basic_test_conversions.h b/test_conformance/conversions/basic_test_conversions.h index cf0e2c66a7..aed0601be2 100644 --- a/test_conformance/conversions/basic_test_conversions.h +++ b/test_conformance/conversions/basic_test_conversions.h @@ -184,7 +184,8 @@ struct ConversionsTest RoundingMode round); template - void TestTypesConversion(const Type &inType, const Type &outType, int &tn); + void TestTypesConversion(const Type &inType, const Type &outType, int &tn, + const int smvs); protected: cl_context context; @@ -244,7 +245,7 @@ struct IterOverTypes : public TestType { IterOverTypes(const TypeIter &typeIter, ConversionsTest &test) : inType((Type)0), outType((Type)0), typeIter(typeIter), test(test), - testNumber(-1) + testNumber(-1), startMinVectorSize(gMinVectorSize) {} void Run() { for_each_out_elem(typeIter); } @@ -267,7 +268,8 @@ struct IterOverTypes : public TestType if (!testType(outType)) vlog_error("Unexpected data type!\n"); // run the conversions - test.TestTypesConversion(inType, outType, testNumber); + test.TestTypesConversion(inType, outType, testNumber, + startMinVectorSize); inType = (Type)(inType + 1); } @@ -307,6 +309,7 @@ struct IterOverTypes : public TestType const TypeIter &typeIter; ConversionsTest &test; int testNumber; + int startMinVectorSize; }; @@ -316,7 +319,7 @@ struct IterOverSelectedTypes : public TestType IterOverSelectedTypes(const TypeIter &typeIter, ConversionsTest &test, const Type &in, const Type &out) : inType(in), outType(out), typeIter(typeIter), test(test), - testNumber(-1) + testNumber(-1), startMinVectorSize(gMinVectorSize) {} void Run() { for_each_out_elem(typeIter); } @@ -335,8 +338,8 @@ struct IterOverSelectedTypes : public TestType if (testType(inType) && testType(outType)) { // run the conversions - test.TestTypesConversion(inType, outType, - testNumber); + test.TestTypesConversion( + inType, outType, testNumber, startMinVectorSize); } } @@ -374,6 +377,7 @@ struct IterOverSelectedTypes : public TestType const TypeIter &typeIter; ConversionsTest &test; int testNumber; + int startMinVectorSize; };