azabaznov created this revision. azabaznov added reviewers: Anastasia, svenvh, thakis. Herald added subscribers: arphaman, yaxunl. azabaznov requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.
Otherwise (for other targets) testing may be non-determistic as targets support different extension/feature set, but SPIR target support all extensions/features by default Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D98539 Files: clang/test/Index/cxx.cl clang/test/Index/opencl-types.cl Index: clang/test/Index/opencl-types.cl =================================================================== --- clang/test/Index/opencl-types.cl +++ clang/test/Index/opencl-types.cl @@ -1,4 +1,4 @@ -// RUN: c-index-test -test-print-type %s -cl-std=CL2.0 | FileCheck %s +// RUN: c-index-test -test-print-type %s -cl-std=CL2.0 -target spir | FileCheck %s #pragma OPENCL EXTENSION cl_khr_fp16 : enable #pragma OPENCL EXTENSION cl_khr_fp64 : enable Index: clang/test/Index/cxx.cl =================================================================== --- clang/test/Index/cxx.cl +++ clang/test/Index/cxx.cl @@ -3,5 +3,5 @@ addrspace_cast<__global int*>(ptr); } -// RUN: c-index-test -test-load-source all %s -cl-std=clc++ | FileCheck %s +// RUN: c-index-test -test-load-source all %s -cl-std=clc++ -target spir | FileCheck %s // CHECK: cxx.cl:3:3: CXXAddrspaceCastExpr
Index: clang/test/Index/opencl-types.cl =================================================================== --- clang/test/Index/opencl-types.cl +++ clang/test/Index/opencl-types.cl @@ -1,4 +1,4 @@ -// RUN: c-index-test -test-print-type %s -cl-std=CL2.0 | FileCheck %s +// RUN: c-index-test -test-print-type %s -cl-std=CL2.0 -target spir | FileCheck %s #pragma OPENCL EXTENSION cl_khr_fp16 : enable #pragma OPENCL EXTENSION cl_khr_fp64 : enable Index: clang/test/Index/cxx.cl =================================================================== --- clang/test/Index/cxx.cl +++ clang/test/Index/cxx.cl @@ -3,5 +3,5 @@ addrspace_cast<__global int*>(ptr); } -// RUN: c-index-test -test-load-source all %s -cl-std=clc++ | FileCheck %s +// RUN: c-index-test -test-load-source all %s -cl-std=clc++ -target spir | FileCheck %s // CHECK: cxx.cl:3:3: CXXAddrspaceCastExpr
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits