[Beignet] [PATCH 3/3] Change compiler_function_argument3 to cover llvm.memcpy.

Yang Rong rong.r.yang at intel.com
Wed Jan 15 00:31:06 PST 2014


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 at intel.com>
---
 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];
 }
-- 
1.8.3.2



More information about the Beignet mailing list