fix utest simd_any for simd width 8 and 16
authorGuo Yejun <yejun.guo@intel.com>
Tue, 10 Jun 2014 21:27:26 +0000 (05:27 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Wed, 11 Jun 2014 04:58:27 +0000 (12:58 +0800)
Signed-off-by: Guo Yejun <yejun.guo@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
kernels/compiler_simd_any.cl

index 6cc287f..3b04f82 100644 (file)
@@ -3,7 +3,7 @@ __kernel void compiler_simd_any(global int *src, global int *dst)
   int i = get_global_id(0);
 
   if (i % 2 == 1) {
-    if (__gen_ocl_simd_any(src[i] == 5))
+    if (__gen_ocl_simd_any(src[i] == 5) || __gen_ocl_simd_any(src[i] == 9))
       dst[i] = 1;
     else if (__gen_ocl_simd_any(src[i] == 6))
       dst[i] = 0;