diff --git a/test_conformance/basic/test_explicit_s2v.cpp b/test_conformance/basic/test_explicit_s2v.cpp index c23d976e5..ea09d13a5 100644 --- a/test_conformance/basic/test_explicit_s2v.cpp +++ b/test_conformance/basic/test_explicit_s2v.cpp @@ -172,12 +172,22 @@ int test_explicit_s2v_function(cl_context context, cl_command_queue queue, { if( memcmp( convertedData, outPtr + destTypeSize * s, destTypeSize ) != 0 ) { - bool isSrcNaN = (((srcType == kHalf) && IsHalfNaN(*reinterpret_cast(inPtr))) - || ((srcType == kFloat) && isnan(*reinterpret_cast(inPtr))) - || ((srcType == kDouble) && isnan(*reinterpret_cast(inPtr)))); - bool isDestNaN = (((destType == kHalf) && IsHalfNaN(*reinterpret_cast(outPtr + destTypeSize * s))) - || ((destType == kFloat) && isnan(*reinterpret_cast(outPtr + destTypeSize * s))) - || ((destType == kDouble) && isnan(*reinterpret_cast(outPtr + destTypeSize * s)))); + bool isSrcNaN = + (((srcType == kHalf) + && IsHalfNaN(*reinterpret_cast(inPtr))) + || ((srcType == kFloat) + && isnan(*reinterpret_cast(inPtr))) + || ((srcType == kDouble) + && isnan(*reinterpret_cast(inPtr)))); + bool isDestNaN = (((destType == kHalf) + && IsHalfNaN(*reinterpret_cast( + outPtr + destTypeSize * s))) + || ((destType == kFloat) + && isnan(*reinterpret_cast( + outPtr + destTypeSize * s))) + || ((destType == kDouble) + && isnan(*reinterpret_cast( + outPtr + destTypeSize * s)))); if (isSrcNaN && isDestNaN) {