diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2012-05-28 20:42:59 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-05-28 20:42:59 +0000 |
commit | 96eafe454afb36b06aa0704cd87b223b3b6f92da (patch) | |
tree | 712c199770a628b5c1e9dc681b8e2725f1f1f5ad | |
parent | 9b95fc79c210b69f60f8c226c94789c3d4b5000c (diff) |
Add some tests which had heretofore evaded 'git add'.
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@157591 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/add_sat.cl | 3 | ||||
-rw-r--r-- | test/as_type.cl | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/add_sat.cl b/test/add_sat.cl new file mode 100644 index 0000000..45c8567 --- /dev/null +++ b/test/add_sat.cl @@ -0,0 +1,3 @@ +__kernel void foo(__global char *a, __global char *b, __global char *c) { + *a = add_sat(*b, *c); +} diff --git a/test/as_type.cl b/test/as_type.cl new file mode 100644 index 0000000..e8fb122 --- /dev/null +++ b/test/as_type.cl @@ -0,0 +1,3 @@ +__kernel void foo(int4 *x, float4 *y) { + *x = as_int4(*y); +} |