summaryrefslogtreecommitdiff
path: root/utests/compiler_mul24.cpp
diff options
context:
space:
mode:
authorGuo Yejun <yejun.guo@intel.com>2016-02-25 06:19:50 +0800
committerYang Rong <rong.r.yang@intel.com>2016-03-17 16:00:37 +0800
commitf0425d621173bc953a823677cdcaed46b051b9db (patch)
tree3012d64b4769d4c8d506e1ebd6c74853aefeeae6 /utests/compiler_mul24.cpp
parent27a95c6678e3e6426ad1bc7927d92f1488fe884c (diff)
change behavior of mul24/mad24 when out of range
mul24 and mad24 are supposed to be fast integer functions, but the current implementation is slower. At least we should provide same performance if not faster, so change the behavior when the parameters are out of range since it is implementation-defined. passed test: integer_ops of conformance test Signed-off-by: Guo Yejun <yejun.guo@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/compiler_mul24.cpp')
-rw-r--r--utests/compiler_mul24.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}