Migrate relationals suite to the new test registration framework (#2312)

Contributes to #2181.

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
This commit is contained in:
Ahmed Hesham
2025-03-09 09:49:24 +00:00
committed by GitHub
parent 6eb1aa1d0a
commit aed6c3a214
6 changed files with 39 additions and 124 deletions

View File

@@ -199,7 +199,7 @@ int anyVerifyFn( ExplicitType vecType, unsigned int vecSize, void *inData )
}
}
int test_relational_any(cl_device_id device, cl_context context, cl_command_queue queue, int numElements )
REGISTER_TEST(relational_any)
{
ExplicitType vecType[] = { kChar, kShort, kInt, kLong };
unsigned int vecSizes[] = { 1, 2, 3, 4, 8, 16, 0 };
@@ -268,7 +268,7 @@ int allVerifyFn( ExplicitType vecType, unsigned int vecSize, void *inData )
}
}
int test_relational_all(cl_device_id device, cl_context context, cl_command_queue queue, int numElements )
REGISTER_TEST(relational_all)
{
ExplicitType vecType[] = { kChar, kShort, kInt, kLong };
unsigned int vecSizes[] = { 1, 2, 3, 4, 8, 16, 0 };
@@ -526,7 +526,7 @@ void bitselect_verify_fn( ExplicitType vecType, ExplicitType testVecType, unsign
}
}
int test_relational_bitselect(cl_device_id device, cl_context context, cl_command_queue queue, int numElements )
REGISTER_TEST(relational_bitselect)
{
constexpr ExplicitType vecType[] = { kChar, kUChar, kShort, kUShort,
kInt, kUInt, kLong, kULong,
@@ -626,7 +626,7 @@ void select_signed_verify_fn( ExplicitType vecType, ExplicitType testVecType, un
memcpy( outData, ( yep ) ? inDataB : inDataA, get_explicit_type_size( vecType ) );
}
int test_relational_select_signed(cl_device_id device, cl_context context, cl_command_queue queue, int numElements )
REGISTER_TEST(relational_select_signed)
{
constexpr ExplicitType vecType[] = { kChar, kUChar, kShort, kUShort,
kInt, kUInt, kLong, kULong,
@@ -732,7 +732,7 @@ void select_unsigned_verify_fn( ExplicitType vecType, ExplicitType testVecType,
memcpy( outData, ( yep ) ? inDataB : inDataA, get_explicit_type_size( vecType ) );
}
int test_relational_select_unsigned(cl_device_id device, cl_context context, cl_command_queue queue, int numElements )
REGISTER_TEST(relational_select_unsigned)
{
constexpr ExplicitType vecType[] = { kChar, kUChar, kShort, kUShort,
kInt, kUInt, kLong, kULong,