From: Chuanbo Weng Date: Thu, 22 Aug 2013 11:23:38 +0000 (+0800) Subject: Add a test case that trigger a known bug. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a389dedab9bc94d3efcfbae1a06fe7b445d73332;p=contrib%2Fbeignet.git Add a test case that trigger a known bug. This unit test case trigger a known bug: ASSERTION FAILED: TODO Boolean values cannot escape their definition basic block. Signed-off-by: Chuanbo Weng Reviewed-by: Zhigang Gong --- diff --git a/kernels/compiler_bool_cross_basic_block.cl b/kernels/compiler_bool_cross_basic_block.cl new file mode 100644 index 0000000..9aeb16d --- /dev/null +++ b/kernels/compiler_bool_cross_basic_block.cl @@ -0,0 +1,21 @@ +__kernel +void compiler_bool_cross_basic_block(__global int *src, + __global int *dst, + int scale){ + int id = (int)get_global_id(0); + + bool isRedRow = false; + bool isRed; + int val = src[id]; + for (unsigned int i=0; i