summaryrefslogtreecommitdiff
path: root/kernels
diff options
context:
space:
mode:
authorYang Rong <rong.r.yang@intel.com>2014-01-15 16:31:06 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-01-16 14:45:17 +0800
commit78c9b9e82b87b949e2cd155ce25702e5db5ebf6c (patch)
treed0c492d997f4ca62630eb8c22a6d76b7516d5760 /kernels
parent3661c2d35f40fd1e6e9153fd888f33579db7e543 (diff)
Change compiler_function_argument3 to cover llvm.memcpy.
We found clang wound emit llvm.memcpy when assign a stuct to another, if sizeof(struct) > 64. Add a assignment to produce llvm.memcpy. Signed-off-by: Yang Rong <rong.r.yang@intel.com> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'kernels')
-rw-r--r--kernels/compiler_function_argument3.cl2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernels/compiler_function_argument3.cl b/kernels/compiler_function_argument3.cl
index 4df28164..9395cd7c 100644
--- a/kernels/compiler_function_argument3.cl
+++ b/kernels/compiler_function_argument3.cl
@@ -66,4 +66,6 @@ struct sfloat8 f, __global struct sfloat8 *result)
result[5].f = 12.0f;
result[5].g = 12.0f;
result[5].h = f.a + f.h;
+
+ result[6] = result[0];
}