Fix printing in intrinsics unit tests
In case of a test failure for the intrinsics unit test, all variables
were printed as 32 byte values rather than their actual size.
Change-Id: I32a070df297ece311e0438f1554ef81a96446b4b
diff --git a/test/simd_cmp_impl.h b/test/simd_cmp_impl.h
index b7bd5e7..3074a69 100644
--- a/test/simd_cmp_impl.h
+++ b/test/simd_cmp_impl.h
@@ -1731,8 +1731,9 @@
}
EXPECT_EQ(0, error) << "Error: mismatch for " << name << "("
- << Print(s, sizeof(s)) << ") -> " << Print(d, sizeof(d))
- << " (simd), " << Print(ref_d, sizeof(ref_d)) << " (ref)";
+ << Print(s, sizeof(CArg)) << ") -> "
+ << Print(d, sizeof(CRet)) << " (simd), "
+ << Print(ref_d, sizeof(CRet)) << " (ref)";
}
template <typename CRet, typename CArg1, typename CArg2>
@@ -1987,9 +1988,10 @@
}
EXPECT_EQ(0, error) << "Error: mismatch for " << name << "("
- << Print(s1, sizeof(s1)) << ", " << Print(s2, sizeof(s2))
- << ") -> " << Print(d, sizeof(d)) << " (simd), "
- << Print(ref_d, sizeof(ref_d)) << " (ref)";
+ << Print(s1, sizeof(CArg1)) << ", "
+ << Print(s2, sizeof(CArg2)) << ") -> "
+ << Print(d, sizeof(CRet)) << " (simd), "
+ << Print(ref_d, sizeof(CRet)) << " (ref)";
}
template <typename CRet, typename CArg1, typename CArg2, typename CArg3>
@@ -2063,10 +2065,11 @@
}
EXPECT_EQ(0, error) << "Error: mismatch for " << name << "("
- << Print(s1, sizeof(s1)) << ", " << Print(s2, sizeof(s2))
- << ", " << Print(s3, sizeof(s3)) << ") -> "
- << Print(d, sizeof(d)) << " (simd), "
- << Print(ref_d, sizeof(ref_d)) << " (ref)";
+ << Print(s1, sizeof(CArg1)) << ", "
+ << Print(s2, sizeof(CArg2)) << ", "
+ << Print(s3, sizeof(CArg3)) << ") -> "
+ << Print(d, sizeof(CRet)) << " (simd), "
+ << Print(ref_d, sizeof(CRet)) << " (ref)";
}
// Instantiations to make the functions callable from another files