File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %clang_cc1 %s -fsyntax-only -fsycl -fsycl-is-device -DCHECKDIAG -verify
2
- // RUN: %clang_cc1 %s -fsyntax-only -ast-dump -fsycl -fsycl-is-device | FileCheck %s
1
+ // RUN: %clang_cc1 %s -fsyntax-only -fsycl -fsycl-is-device -triple spir64 - DCHECKDIAG -verify
2
+ // RUN: %clang_cc1 %s -fsyntax-only -ast-dump -fsycl -fsycl-is-device -triple spir64 | FileCheck %s
3
3
4
4
[[intel::kernel_args_restrict]] // expected-warning{{'kernel_args_restrict' attribute ignored}}
5
5
void func_ignore () {}
@@ -18,17 +18,17 @@ __attribute__((sycl_kernel)) void kernel(Func kernelFunc) {
18
18
}
19
19
20
20
int main () {
21
- // CHECK-LABEL: FunctionDecl {{.*}} _ZTSZ4mainE12test_kernel1
21
+ // CHECK-LABEL: FunctionDecl {{.*}}test_kernel1
22
22
// CHECK: SYCLIntelKernelArgsRestrictAttr
23
23
kernel<class test_kernel1 >(
24
24
FuncObj ());
25
25
26
- // CHECK-LABEL: FunctionDecl {{.*}} _ZTSZ4mainE12test_kernel2
26
+ // CHECK-LABEL: FunctionDecl {{.*}}test_kernel2
27
27
// CHECK: SYCLIntelKernelArgsRestrictAttr
28
28
kernel<class test_kernel2 >(
29
29
[]() [[intel::kernel_args_restrict]] {});
30
30
31
- // CHECK-LABEL: FunctionDecl {{.*}} _ZTSZ4mainE12test_kernel3
31
+ // CHECK-LABEL: FunctionDecl {{.*}}test_kernel3
32
32
// CHECK-NOT: SYCLIntelKernelArgsRestrictAttr
33
33
kernel<class test_kernel3 >(
34
34
[]() {func_ignore ();});
You can’t perform that action at this time.
0 commit comments