[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
This commit is contained in:
Anastasia Stulova 2021-03-12 20:11:26 +00:00
parent 50fd426fd8
commit eed88e91f3
2 changed files with 2 additions and 2 deletions

View 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

View 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