diff options
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); +} |