[clang] eed88e9 - [OpenCL] Use spir target for CIndex tests for OpenCL.
Anastasia Stulova via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 12 12:14:15 PST 2021
Author: Anastasia Stulova
Date: 2021-03-12T20:11:26Z
New Revision: eed88e91f331d158d3d0c91e91fca408c9f1d1e1
URL: https://github.com/llvm/llvm-project/commit/eed88e91f331d158d3d0c91e91fca408c9f1d1e1
DIFF: https://github.com/llvm/llvm-project/commit/eed88e91f331d158d3d0c91e91fca408c9f1d1e1.diff
LOG: [OpenCL] Use spir target for CIndex tests for OpenCL.
This fixes failing bots.
Patch by azabaznov (Anton Zabaznov)!
Differential Revision: https://reviews.llvm.org/D98539
Added:
Modified:
clang/test/Index/cxx.cl
clang/test/Index/opencl-types.cl
Removed:
################################################################################
diff --git a/clang/test/Index/cxx.cl b/clang/test/Index/cxx.cl
index f4b03d78740e..997d4288669f 100644
--- a/clang/test/Index/cxx.cl
+++ b/clang/test/Index/cxx.cl
@@ -3,5 +3,5 @@ void test(int *ptr) {
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
diff --git a/clang/test/Index/opencl-types.cl b/clang/test/Index/opencl-types.cl
index 496f38752fa2..485060167d21 100644
--- a/clang/test/Index/opencl-types.cl
+++ b/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
More information about the cfe-commits
mailing list