From 78c9b9e82b87b949e2cd155ce25702e5db5ebf6c Mon Sep 17 00:00:00 2001 From: Yang Rong Date: Wed, 15 Jan 2014 16:31:06 +0800 Subject: [PATCH] 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 Reviewed-by: Zhigang Gong --- kernels/compiler_function_argument3.cl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernels/compiler_function_argument3.cl b/kernels/compiler_function_argument3.cl index 4df2816..9395cd7 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]; } -- 2.7.4