Add tests for dot functions

[ROCm/clr commit: bbe5a0381f]
This commit is contained in:
Aaron Enye Shi
2019-01-22 22:32:28 +00:00
parent 4115a1c8c2
commit 0e1860dd53
2 changed files with 74 additions and 0 deletions
@@ -156,6 +156,11 @@ void __half2Test(bool* result, __half2 a) {
result[0] = (a >= a) && result[0];
result[0] = !(a < a) && result[0];
result[0] = !(a > a) && result[0];
#if (__hcc_workweek__ >= 19015) || defined(__HIP_CLANG_ONLY__)
// Dot Functions
result[0] = to_bool(amd_mixed_dot(a, a, 1, 1)) && result[0];
#endif
}
#endif