summaryrefslogtreecommitdiff
path: root/utests/compiler_double_convert.cpp
diff options
context:
space:
mode:
authorJunyan He <junyan.he@linux.intel.com>2015-11-05 16:15:45 +0800
committerYang Rong <rong.r.yang@intel.com>2015-11-06 14:30:49 +0800
commit82d6af448d46364d887a020ccc31ffd31cbb032a (patch)
tree8a23110fabdf991ef175240a450c393baffdd7e6 /utests/compiler_double_convert.cpp
parent9e9937ca0f2c61b5a060a574e718d3bfdb9aadac (diff)
downloadbeignet-82d6af448d46364d887a020ccc31ffd31cbb032a.tar.gz
Utest: Fix a bug for double div.
Signed-off-by: Junyan He <junyan.he@linux.intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
Diffstat (limited to 'utests/compiler_double_convert.cpp')
-rw-r--r--utests/compiler_double_convert.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/utests/compiler_double_convert.cpp b/utests/compiler_double_convert.cpp
index 9c5c97ba..30787d2c 100644
--- a/utests/compiler_double_convert.cpp
+++ b/utests/compiler_double_convert.cpp
@@ -613,8 +613,7 @@ void compiler_float_convert_double(void)
OCL_MAP_BUFFER(1);
for (int32_t i = 0; i < (int32_t) n; ++i) {
//printf("%f, \t%f\n", ((double*)buf_data[1])[i], cpu_dst[i]);
- OCL_ASSERT(((double*)buf_data[2])[i] == cpu_dst0[i]);
- OCL_ASSERT(((double*)buf_data[3])[i] == cpu_dst1[i]);
+ OCL_ASSERT(((double*)buf_data[1])[i] == cpu_dst[i]);
}
OCL_UNMAP_BUFFER(1);
}