Changeset View
Changeset View
Standalone View
Standalone View
test/Parser/opencl-atomics-cl20.cl
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -verify -pedantic -fsyntax-only | // ToDo: a bug causing cached AST of header containing typedef of atomic_int for CL1.0. After the bug is fixed | ||||
// -fno-default-header should be removed. | |||||
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -verify -pedantic -fsyntax-only -fno-default-header | |||||
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -verify -fsyntax-only -cl-std=CL2.0 -DCL20 | // RUN: %clang_cc1 %s -triple spir-unknown-unknown -verify -fsyntax-only -cl-std=CL2.0 -DCL20 | ||||
// RUN: %clang_cc1 %s -triple spir-unknown-unknown -verify -fsyntax-only -cl-std=CL2.0 -DCL20 -DEXT | // RUN: %clang_cc1 %s -triple spir-unknown-unknown -verify -fsyntax-only -cl-std=CL2.0 -DCL20 -DEXT | ||||
#ifdef EXT | #ifdef EXT | ||||
#pragma OPENCL EXTENSION cl_khr_int64_base_atomics:enable | #pragma OPENCL EXTENSION cl_khr_int64_base_atomics:enable | ||||
#pragma OPENCL EXTENSION cl_khr_int64_extended_atomics:enable | #pragma OPENCL EXTENSION cl_khr_int64_extended_atomics:enable | ||||
#pragma OPENCL EXTENSION cl_khr_fp64:enable | #pragma OPENCL EXTENSION cl_khr_fp64:enable | ||||
#if __OPENCL_C_VERSION__ >= CL_VERSION_1_2 | #if __OPENCL_C_VERSION__ >= CL_VERSION_1_2 | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |