summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc/math/binary_intrin.inc
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2018-03-06 17:48:35 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2018-03-06 17:48:35 +0000
commitdbaf6d0f7ce8d4f590e0ec929726b3085ffc1799 (patch)
tree56a2ea9d06b1e4cb88dd63163d53700acb828370 /libclc/generic/include/clc/math/binary_intrin.inc
parent1d6c6ee1cf98d260b486242b288a9d8fa0e4e7e1 (diff)
downloadbcm5719-llvm-dbaf6d0f7ce8d4f590e0ec929726b3085ffc1799.tar.gz
bcm5719-llvm-dbaf6d0f7ce8d4f590e0ec929726b3085ffc1799.zip
Move cl_khr_fp64 exntension enablement to gentype include lists
This will make adding cl_khr_fp16 support easier Reviewed-by: Aaron Watry <awatry@gmail.com> Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 326816
Diffstat (limited to 'libclc/generic/include/clc/math/binary_intrin.inc')
-rw-r--r--libclc/generic/include/clc/math/binary_intrin.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/math/binary_intrin.inc b/libclc/generic/include/clc/math/binary_intrin.inc
index cfbe74159ec..dd4440af124 100644
--- a/libclc/generic/include/clc/math/binary_intrin.inc
+++ b/libclc/generic/include/clc/math/binary_intrin.inc
@@ -6,6 +6,7 @@ _CLC_OVERLOAD float8 __CLC_FUNCTION(float8, float8) __asm(__CLC_INTRINSIC ".v8f3
_CLC_OVERLOAD float16 __CLC_FUNCTION(float16, float16) __asm(__CLC_INTRINSIC ".v16f32");
#ifdef cl_khr_fp64
+#pragma OPENCL EXTENSION cl_khr_fp64 : enable
_CLC_OVERLOAD double __CLC_FUNCTION(double, double) __asm(__CLC_INTRINSIC ".f64");
_CLC_OVERLOAD double2 __CLC_FUNCTION(double2, double2) __asm(__CLC_INTRINSIC ".v2f64");
_CLC_OVERLOAD double3 __CLC_FUNCTION(double3, double3) __asm(__CLC_INTRINSIC ".v3f64");
OpenPOWER on IntegriCloud