summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2016-02-09 22:17:42 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2016-02-09 22:17:42 +0000
commit7fbb96b907cfdedefeeb3fdc8f046950bd76401e (patch)
treea6edb6bb70107680a9fea7356f2cfbc00e0df781
parent89d9b333b0759fc32a35dd595ea9fa5d39d2ae7e (diff)
downloadllvm-7fbb96b907cfdedefeeb3fdc8f046950bd76401e.tar.gz
math: Fix log2 vectorization on non-fp64 hw
reviewer: tstellard Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 260301
-rw-r--r--libclc/generic/lib/math/log2.cl2
1 files changed, 2 insertions, 0 deletions
diff --git a/libclc/generic/lib/math/log2.cl b/libclc/generic/lib/math/log2.cl
index df6eeb28f6f6..8776a80ec3be 100644
--- a/libclc/generic/lib/math/log2.cl
+++ b/libclc/generic/lib/math/log2.cl
@@ -34,4 +34,6 @@
_CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, float, log2, float);
+#ifdef cl_khr_fp64
_CLC_UNARY_VECTORIZE(_CLC_OVERLOAD _CLC_DEF, double, log2, double);
+#endif // cl_khr_fp64