Skip to content

Commit 3e8ebcd

Browse files
committed
[NFC][Clang] Add triple to spirv-builtins-addr-space.cpp (#30183)
Fix: Clang::CodeGenSYCL/spirv-builtins-addr-space.cpp
1 parent 31f4aef commit 3e8ebcd

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

clang/test/CodeGenSYCL/spirv-builtins-addr-space.cpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22
//
33
// Check that SPIR-V builtins are declared with SYCL address spaces rather
44
// than OpenCL address spaces when using them with SYCL. OpenCL address spaces
@@ -7,25 +7,22 @@
77
//
88
// The opencl_global, opencl_local, and opencl_private attributes get turned
99
// 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
1310

1411
#include "Inputs/sycl.hpp"
1512

16-
// CHECK: __spirv_ocl_modf{{.*}}SYglobal
13+
// CHECK: __spirv_ocl_modf{{.*}}AS1f
1714
void modf_global(float a) {
1815
__attribute__((opencl_global)) float *ptr = nullptr;
1916
sycl::kernel_single_task<class fake_kernel>([=]() { __spirv_ocl_modf(a, ptr); });
2017
}
2118

22-
// CHECK: __spirv_ocl_modf{{.*}}SYlocal
19+
// CHECK: __spirv_ocl_modf{{.*}}AS3f
2320
void modf_local(float a) {
2421
__attribute__((opencl_local)) float *ptr = nullptr;
2522
sycl::kernel_single_task<class fake_kernel>([=]() { __spirv_ocl_modf(a, ptr); });
2623
}
2724

28-
// CHECK: __spirv_ocl_modf{{.*}}SYprivate
25+
// CHECK: __spirv_ocl_modf{{.*}}AS0f
2926
void modf_private(float a) {
3027
__attribute__((opencl_private)) float *ptr = nullptr;
3128
sycl::kernel_single_task<class fake_kernel>([=]() { __spirv_ocl_modf(a, ptr); });

0 commit comments

Comments
 (0)