summaryrefslogtreecommitdiff
path: root/utests/compiler_vector_load_store.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Utest: Add test case for half type vload\storePan Xiuli2016-08-121-6/+26
| | | | | | | | | V2: Half program is different with normal program, reorder the test case order. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* utests: disable double test case.Ruiling Song2014-05-291-1/+1
| | | | | | | | | As we could not provide full support of double now, and my patch to refine long support breaks double load/store. So, we disable all double test cases. Signed-off-by: Ruiling Song <ruiling.song@intel.com> Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
* Accelerate utest.Zhigang Gong2013-12-161-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For some test cases which include more than one kernel, the current implementation always build the program for a new sub test case. That wastes a lot of time. This patch introduce a new macro MAKE_UTEST_FROM_FUNCTION_KEEP_PROGRAM which has an extra parameter to specify whether to keep the previous program and avoid the extra build. The normal usage is: MAKE_UTEST_FROM_FUNCTION_KEEP_PROGRAM(fn1, true); MAKE_UTEST_FROM_FUNCTION_KEEP_PROGRAM(fn2, true); MAKE_UTEST_FROM_FUNCTION_KEEP_PROGRAM(fn3, true); MAKE_UTEST_FROM_FUNCTION_KEEP_PROGRAM(fn4, true); MAKE_UTEST_FROM_FUNCTION_KEEP_PROGRAM(fn5, false); The scenario is that the above fn1-5 are included in the same kernel file and we define the sub cases in the same cpp file. We already have some examples of this usage in the compiler_abs.cpp, compiler_abs_diff.cpp compiler_basic_arithmetic.cpp, compiler_vector_load_store.cpp, etc. This patch reduces 2/3 of the utests execution time. v2: should always destroy the program when run one specific test case. Signed-off-by: Zhigang Gong <zhigang.gong@intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
* Utests: enable long/ulong in vector load/store test case.Zhigang Gong2013-08-091-2/+2
| | | | | Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
* GBE: enable double vector load/store support.Zhigang Gong2013-08-071-4/+8
| | | | | | | | | | We have some accurate problem for double calculation on GPU side. I have to change the test case for double type to add a tolerate error when check the double data result. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: "Xing, Homer" <homer.xing@intel.com>
* GBE: Fixed a 3 elements vector load/store bug.Zhigang Gong2013-05-311-1/+1
| | | | | | | | | | | Per OpenCL spec, for 3-component vector data types,the size of the data type is 4 * sizeof(component). And llvm FE really cast a type3 data to type4 data for load/store instruction, thus break our implementation. We need to fixup it to the actual element size. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* utests: test vector load and store.Zhigang Gong2013-05-291-4/+53
| | | | | | | | Add float4/short4/char4 test case. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Tested-by: Lv, Meng <meng.lv@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
* test OpenCL 1.1 Vector Data Load/Store FunctionsHomer Hsing2013-03-291-0/+10