diff options
Diffstat (limited to 'test/SemaOpenCL/extension-version.cl')
-rw-r--r-- | test/SemaOpenCL/extension-version.cl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/SemaOpenCL/extension-version.cl b/test/SemaOpenCL/extension-version.cl index 6100346f7072..e56027604651 100644 --- a/test/SemaOpenCL/extension-version.cl +++ b/test/SemaOpenCL/extension-version.cl @@ -273,3 +273,21 @@ #endif #pragma OPENCL EXTENSION cl_amd_media_ops2: enable +#if (__OPENCL_C_VERSION__ >= 120) +#ifndef cl_intel_subgroups +#error "Missing cl_intel_subgroups define" +#endif +#else +// expected-warning@+2{{unsupported OpenCL extension 'cl_intel_subgroups' - ignoring}} +#endif +#pragma OPENCL EXTENSION cl_intel_subgroups : enable + +#if (__OPENCL_C_VERSION__ >= 120) +#ifndef cl_intel_subgroups_short +#error "Missing cl_intel_subgroups_short define" +#endif +#else +// expected-warning@+2{{unsupported OpenCL extension 'cl_intel_subgroups_short' - ignoring}} +#endif +#pragma OPENCL EXTENSION cl_intel_subgroups_short : enable + |