diff options
Diffstat (limited to 'utests')
-rw-r--r-- | utests/compiler_mad24.cpp | 2 | ||||
-rw-r--r-- | utests/compiler_mul24.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/utests/compiler_mad24.cpp b/utests/compiler_mad24.cpp index a3890a14..ba2dcf60 100644 --- a/utests/compiler_mad24.cpp +++ b/utests/compiler_mad24.cpp @@ -34,7 +34,7 @@ void compiler_mad24(void) OCL_MAP_BUFFER(3); for (int i = 0; i < n; ++i) - OCL_ASSERT(((int*)buf_data[3])[i] == ((src1[i] << 8) >> 8) * ((src2[i] << 8) >> 8) + src3[i]); + OCL_ASSERT(((int*)buf_data[3])[i] == (src1[i]) * (src2[i]) + src3[i]); OCL_UNMAP_BUFFER(3); } diff --git a/utests/compiler_mul24.cpp b/utests/compiler_mul24.cpp index 8a369476..f1a9a40c 100644 --- a/utests/compiler_mul24.cpp +++ b/utests/compiler_mul24.cpp @@ -29,7 +29,7 @@ void compiler_mul24(void) OCL_MAP_BUFFER(2); for (int i = 0; i < n; ++i) - OCL_ASSERT(((int*)buf_data[2])[i] == ((src1[i] << 8) >> 8) * ((src2[i] << 8) >> 8)); + OCL_ASSERT(((int*)buf_data[2])[i] == (src1[i]) * (src2[i])); OCL_UNMAP_BUFFER(2); } |