Add some tests which had heretofore evaded 'git add'.
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 28 May 2012 20:42:59 +0000 (20:42 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 28 May 2012 20:42:59 +0000 (20:42 +0000)
llvm-svn: 157591

libclc/test/add_sat.cl [new file with mode: 0644]
libclc/test/as_type.cl [new file with mode: 0644]

diff --git a/libclc/test/add_sat.cl b/libclc/test/add_sat.cl
new file mode 100644 (file)
index 0000000..45c8567
--- /dev/null
@@ -0,0 +1,3 @@
+__kernel void foo(__global char *a, __global char *b, __global char *c) {
+  *a = add_sat(*b, *c);
+}
diff --git a/libclc/test/as_type.cl b/libclc/test/as_type.cl
new file mode 100644 (file)
index 0000000..e8fb122
--- /dev/null
@@ -0,0 +1,3 @@
+__kernel void foo(int4 *x, float4 *y) {
+  *x = as_int4(*y);
+}