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 | 44a079aa2340887871897c70a404ff0523a6e84b (patch) | |
tree | baf28cb50f9d208bf75662b4866152ee18afb5b2 /libclc | |
parent | 3a78a47aceb08ebb4fa9c7487267dc1f54db0ae9 (diff) | |
download | bcm5719-llvm-44a079aa2340887871897c70a404ff0523a6e84b.tar.gz bcm5719-llvm-44a079aa2340887871897c70a404ff0523a6e84b.zip |
Add some tests which had heretofore evaded 'git add'.
llvm-svn: 157591
Diffstat (limited to 'libclc')
-rw-r--r-- | libclc/test/add_sat.cl | 3 | ||||
-rw-r--r-- | libclc/test/as_type.cl | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libclc/test/add_sat.cl b/libclc/test/add_sat.cl new file mode 100644 index 00000000000..45c8567b440 --- /dev/null +++ b/libclc/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/libclc/test/as_type.cl b/libclc/test/as_type.cl new file mode 100644 index 00000000000..e8fb1228d28 --- /dev/null +++ b/libclc/test/as_type.cl @@ -0,0 +1,3 @@ +__kernel void foo(int4 *x, float4 *y) { + *x = as_int4(*y); +} |