summaryrefslogtreecommitdiffstats
path: root/libclc/test/cos.cl
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2012-01-08 22:09:58 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2012-01-08 22:09:58 +0000
commitd5395fbf03dc168d00bc8622e86fefbac9a3da2a (patch)
tree2c24697a31ef5ef5445a8ad143aa34f4ef42db9d /libclc/test/cos.cl
parent11faafe7dce2bd8befa3e2444c2292edcd9b2d50 (diff)
downloadbcm5719-llvm-d5395fbf03dc168d00bc8622e86fefbac9a3da2a.tar.gz
bcm5719-llvm-d5395fbf03dc168d00bc8622e86fefbac9a3da2a.zip
Initial commit.
llvm-svn: 147756
Diffstat (limited to 'libclc/test/cos.cl')
-rw-r--r--libclc/test/cos.cl3
1 files changed, 3 insertions, 0 deletions
diff --git a/libclc/test/cos.cl b/libclc/test/cos.cl
new file mode 100644
index 00000000000..4230eb2a0e9
--- /dev/null
+++ b/libclc/test/cos.cl
@@ -0,0 +1,3 @@
+__kernel void foo(float4 *f) {
+ *f = cos(*f);
+}
OpenPOWER on IntegriCloud