diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2012-01-08 22:09:58 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-01-08 22:09:58 +0000 |
commit | d5395fbf03dc168d00bc8622e86fefbac9a3da2a (patch) | |
tree | 2c24697a31ef5ef5445a8ad143aa34f4ef42db9d /libclc/test | |
parent | 11faafe7dce2bd8befa3e2444c2292edcd9b2d50 (diff) | |
download | llvm-d5395fbf03dc168d00bc8622e86fefbac9a3da2a.tar.gz |
Initial commit.
llvm-svn: 147756
Diffstat (limited to 'libclc/test')
-rw-r--r-- | libclc/test/cos.cl | 3 | ||||
-rw-r--r-- | libclc/test/cross.cl | 3 | ||||
-rw-r--r-- | libclc/test/get_group_id.cl | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/libclc/test/cos.cl b/libclc/test/cos.cl new file mode 100644 index 000000000000..4230eb2a0e93 --- /dev/null +++ b/libclc/test/cos.cl @@ -0,0 +1,3 @@ +__kernel void foo(float4 *f) { + *f = cos(*f); +} diff --git a/libclc/test/cross.cl b/libclc/test/cross.cl new file mode 100644 index 000000000000..08955cbd9af5 --- /dev/null +++ b/libclc/test/cross.cl @@ -0,0 +1,3 @@ +__kernel void foo(float4 *f) { + *f = cross(f[0], f[1]); +} diff --git a/libclc/test/get_group_id.cl b/libclc/test/get_group_id.cl new file mode 100644 index 000000000000..43725cda8027 --- /dev/null +++ b/libclc/test/get_group_id.cl @@ -0,0 +1,3 @@ +__kernel void foo(int *i) { + i[get_group_id(0)] = 1; +} |