|
1 |
| -// RUN: %clang_cc1 %s -fsycl-is-device -fdeclare-spirv-builtins -emit-llvm -o - -O0 | FileCheck %s |
| 1 | +// RUN: %clang_cc1 %s -triple spir64 -fsycl-is-device -fdeclare-spirv-builtins -emit-llvm -o - -O0 | FileCheck %s |
2 | 2 | //
|
3 | 3 | // Check that SPIR-V builtins are declared with SYCL address spaces rather
|
4 | 4 | // than OpenCL address spaces when using them with SYCL. OpenCL address spaces
|
|
7 | 7 | //
|
8 | 8 | // The opencl_global, opencl_local, and opencl_private attributes get turned
|
9 | 9 | // into sycl_global, sycl_local and sycl_private address spaces by clang.
|
10 |
| -// |
11 |
| -// XFAIL: * |
12 |
| -// XFAIL-TRACKER: https://github.com/intel/llvm/issues/19497 |
13 | 10 |
|
14 | 11 | #include "Inputs/sycl.hpp"
|
15 | 12 |
|
16 |
| -// CHECK: __spirv_ocl_modf{{.*}}SYglobal |
| 13 | +// CHECK: __spirv_ocl_modf{{.*}}AS1f |
17 | 14 | void modf_global(float a) {
|
18 | 15 | __attribute__((opencl_global)) float *ptr = nullptr;
|
19 | 16 | sycl::kernel_single_task<class fake_kernel>([=]() { __spirv_ocl_modf(a, ptr); });
|
20 | 17 | }
|
21 | 18 |
|
22 |
| -// CHECK: __spirv_ocl_modf{{.*}}SYlocal |
| 19 | +// CHECK: __spirv_ocl_modf{{.*}}AS3f |
23 | 20 | void modf_local(float a) {
|
24 | 21 | __attribute__((opencl_local)) float *ptr = nullptr;
|
25 | 22 | sycl::kernel_single_task<class fake_kernel>([=]() { __spirv_ocl_modf(a, ptr); });
|
26 | 23 | }
|
27 | 24 |
|
28 |
| -// CHECK: __spirv_ocl_modf{{.*}}SYprivate |
| 25 | +// CHECK: __spirv_ocl_modf{{.*}}AS0f |
29 | 26 | void modf_private(float a) {
|
30 | 27 | __attribute__((opencl_private)) float *ptr = nullptr;
|
31 | 28 | sycl::kernel_single_task<class fake_kernel>([=]() { __spirv_ocl_modf(a, ptr); });
|
|
0 commit comments