summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorSven van Haastregt <sven.vanhaastregt@arm.com>2019-12-23 12:29:01 +0000
committerSven van Haastregt <sven.vanhaastregt@arm.com>2019-12-23 12:29:01 +0000
commitb714583fd09683458be9eb03a9faef656a8ccf49 (patch)
tree712f05e9c6aa40bdc6a83033bfb86cd565ba8231 /clang/test
parent40bd809b6d5cfe69ffcb567245bc521b971a80eb (diff)
downloadbcm5719-llvm-b714583fd09683458be9eb03a9faef656a8ccf49.tar.gz
bcm5719-llvm-b714583fd09683458be9eb03a9faef656a8ccf49.zip
[OpenCL] Add atomic builtin functions
Add atomic builtin functions from the OpenCL C specification. Patch by Pierre Gondois and Sven van Haastregt.
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl10
1 files changed, 8 insertions, 2 deletions
diff --git a/clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl b/clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
index 000f96278fa..dd89f40761c 100644
--- a/clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
+++ b/clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
@@ -44,8 +44,14 @@ kernel void test_pointers(volatile global void *global_p, global const int4 *a)
// There are two potential definitions of the function "atom_add", both are
// currently disabled because the associated extension is disabled.
-// expected-note@-6{{candidate unavailable as it requires OpenCL extension 'cl_khr_global_int32_base_atomics' to be enabled}}
-// expected-note@-7{{candidate unavailable as it requires OpenCL extension 'cl_khr_global_int32_base_atomics' to be enabled}}
+// expected-note@-6{{candidate function not viable: cannot pass pointer to address space '__global' as a pointer to address space '__local' in 1st argument}}
+// expected-note@-7{{candidate function not viable: no known conversion}}
+// expected-note@-8{{candidate function not viable: no known conversion}}
+// expected-note@-9{{candidate function not viable: no known conversion}}
+// expected-note@-10{{candidate unavailable as it requires OpenCL extension 'cl_khr_global_int32_base_atomics' to be enabled}}
+// expected-note@-11{{candidate unavailable as it requires OpenCL extension 'cl_khr_global_int32_base_atomics' to be enabled}}
+// expected-note@-12{{candidate unavailable as it requires OpenCL extension 'cl_khr_int64_base_atomics' to be enabled}}
+// expected-note@-13{{candidate unavailable as it requires OpenCL extension 'cl_khr_int64_base_atomics' to be enabled}}
#endif
#if __OPENCL_C_VERSION__ < CL_VERSION_1_1
OpenPOWER on IntegriCloud