diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2012-05-28 22:22:13 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-05-28 22:22:13 +0000 |
commit | 117180439615bd06e7a536e61270af9ea6b1406e (patch) | |
tree | 84cf328a07dc7e60107dfd26c162694e9feedd02 /test | |
parent | 96eafe454afb36b06aa0704cd87b223b3b6f92da (diff) |
Add fabs builtin.
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@157595 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/fabs.cl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/fabs.cl b/test/fabs.cl new file mode 100644 index 0000000..91d42c4 --- /dev/null +++ b/test/fabs.cl @@ -0,0 +1,3 @@ +__kernel void foo(float *f) { + *f = fabs(*f); +} |