diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2012-08-21 10:48:35 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-08-21 10:48:35 +0000 |
commit | a9652818973fd27ac904b60dabe12d75ab192ff9 (patch) | |
tree | 2fadd01fd84d7679dad988942c1c9f8b2aa9bccd /test/rsqrt.cl | |
parent | 1e8ef6c06fd23e593f67fb5b8e4bb89eb657e8d6 (diff) |
Add rsqrt builtin. Based on patch by Cassie Epps!
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@162274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/rsqrt.cl')
-rw-r--r-- | test/rsqrt.cl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rsqrt.cl b/test/rsqrt.cl new file mode 100644 index 0000000..13ad216 --- /dev/null +++ b/test/rsqrt.cl @@ -0,0 +1,6 @@ +#pragma OPENCL EXTENSION cl_khr_fp64 : enable + +__kernel void foo(float4 *x, double4 *y) { + x[1] = rsqrt(x[0]); + y[1] = rsqrt(y[0]); +} |