[OpenCL] Use spir target for CIndex tests for OpenCL.
authorAnastasia Stulova <anastasia.stulova@arm.com>
Fri, 12 Mar 2021 20:11:26 +0000 (20:11 +0000)
committerAnastasia Stulova <anastasia.stulova@arm.com>
Fri, 12 Mar 2021 20:11:26 +0000 (20:11 +0000)
This fixes failing bots.

Patch by azabaznov (Anton Zabaznov)!

Differential Revision: https://reviews.llvm.org/D98539

clang/test/Index/cxx.cl
clang/test/Index/opencl-types.cl

index f4b03d7..997d428 100644 (file)
@@ -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
index 496f387..4850601 100644 (file)
@@ -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