[cfe-commits] [libclc] r157591 - in /libclc/trunk/test: add_sat.cl as_type.cl
Peter Collingbourne
peter at pcc.me.uk
Mon May 28 13:42:59 PDT 2012
Author: pcc
Date: Mon May 28 15:42:59 2012
New Revision: 157591
URL: http://llvm.org/viewvc/llvm-project?rev=157591&view=rev
Log:
Add some tests which had heretofore evaded 'git add'.
Added:
libclc/trunk/test/add_sat.cl
libclc/trunk/test/as_type.cl
Added: libclc/trunk/test/add_sat.cl
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/test/add_sat.cl?rev=157591&view=auto
==============================================================================
--- libclc/trunk/test/add_sat.cl (added)
+++ libclc/trunk/test/add_sat.cl Mon May 28 15:42:59 2012
@@ -0,0 +1,3 @@
+__kernel void foo(__global char *a, __global char *b, __global char *c) {
+ *a = add_sat(*b, *c);
+}
Added: libclc/trunk/test/as_type.cl
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/test/as_type.cl?rev=157591&view=auto
==============================================================================
--- libclc/trunk/test/as_type.cl (added)
+++ libclc/trunk/test/as_type.cl Mon May 28 15:42:59 2012
@@ -0,0 +1,3 @@
+__kernel void foo(int4 *x, float4 *y) {
+ *x = as_int4(*y);
+}
More information about the cfe-commits
mailing list