utest: add new test for constant expression processing.
authorZhigang Gong <zhigang.gong@intel.com>
Thu, 24 Jul 2014 05:13:32 +0000 (13:13 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Thu, 31 Jul 2014 02:53:55 +0000 (10:53 +0800)
commit3afae0e4caae5aa592a29bd9717370ea3242d3cd
treee0b0e805b86184f15d7fb78eede05ac98d2682e2
parent1abee67fedc553f9ddb418f9b26741f6b8b64472
utest: add new test for constant expression processing.

If we use 3-component vector in a union, it may introduce
some complex constant expression as below:

float bitcast (i32 trunc (i128 bitcast (<4 x i32> <i32 1065353216, i32 1073741824, i32 1077936128, i32 undef> to i128) to i32) to float).

To test the constant expression processing function.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: "Song, Ruiling" <ruiling.song@intel.com>
kernels/compiler_constant_expr.cl [new file with mode: 0644]
utests/CMakeLists.txt
utests/compiler_constant_expr.cpp [new file with mode: 0644]