Add debug info when test fails

This commit is contained in:
Afonso Bordado 2019-09-26 16:08:41 +00:00
parent 8ceedc8c9e
commit 07cc1a7fc5

View File

@ -118,6 +118,15 @@ bool name() { \
__m64 result = testfunc(a, b); \
\
bool success = mm_raw_compare(expected, result); \
if (!success) { \
printf( \
"Failed; Expected: 0x%08x_%08x\tGot: 0x%08x_%08x\n", \
_m_to_int(_mm_srli_si64(expected, 32)), \
_m_to_int(expected), \
_m_to_int(_mm_srli_si64(result, 32)), \
_m_to_int(result) \
); \
} \
errors += (int) (!success); \
} \
\