summaryrefslogtreecommitdiff
path: root/kernels/compiler_global_constant.cl
Commit message (Collapse)AuthorAgeFilesLines
* GBE: fix the constant data allocation.Zhigang Gong2013-11-131-1/+1
| | | | | | | | | | | | | | | | | | Need to keep consistency between the constant data allocation and the constant register allocation. So we need to skip the unused constant data at the constant data allocation stage. To avoid possible mismatching, add a new assert in the constant register(address) allocation stage to make sure the address register match the eaxct constant data. Also modify the constant utest slightly to hit this code path. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: Ruiling Song <ruiling.song@intel.com>
* GBE: Handle all-zero constant.Ruiling Song2013-10-211-2/+13
| | | | | | | Also refine Undef value support. Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
* utests: add more constant test cases for composite type.Ruiling Song2013-09-181-2/+57
| | | | | Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* test const-indexed global constant arrayHomer Hsing2013-07-081-1/+2
| | | | | | | | | | A test case is updated, to test three feature: variable-indexed global constant array const-indexed global constant array global constant scalar Signed-off-by: Homer Hsing <homer.xing@intel.com> Reviewed-by: Yang, Rong R <rong.r.yang@intel.com>
* test scalar global constantsHomer Hsing2013-07-051-1/+2
| | | | | | | | a test case was updated, to test not only constant arrays, but also constant scalar. Signed-off-by: Homer Hsing <homer.xing@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
* test cases for global constant arraysHomer Hsing2013-05-021-0/+8
version 4 Signed-off-by: Homer Hsing <homer.xing@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>