Skip to content

Commit 3426ef0

Browse files
committed
Correct failing lit tests
1 parent ef2deea commit 3426ef0

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

clang/test/SemaSYCL/check-notdirect-attribute-propagation.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -fsycl -fsycl-is-device -verify %s
1+
// RUN: %clang %s -fsyntax-only -Xclang -ast-dump -fsycl-device-only | FileCheck %s
22

3-
[[intelfpga::no_global_work_offset]] void not_direct() {} // expected-no-warning
3+
[[intelfpga::no_global_work_offset]] void not_direct() {}
44

55
void func() { not_direct(); }
66

@@ -16,5 +16,8 @@ void parallel_for(Type lambda) {
1616
}
1717

1818
void invoke_foo2() {
19+
// CHECK-LABEL: FunctionDecl {{.*}} invoke_foo2 'void ()'
20+
// CHECK: `-FunctionDecl {{.*}} _ZTSZ11invoke_foo2vE10KernelName 'void ()'
21+
// CHECK: -SYCLIntelNoGlobalWorkOffsetAttr {{.*}} Enabled
1922
parallel_for<class KernelName>([]() {});
2023
}

clang/test/SemaSYCL/intel-max-global-work-dim.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void foo() {
2020

2121
#else // __SYCL_DEVICE_ONLY__
2222

23-
[[intelfpga::max_global_work_dim(2)]] // expected-warning{{'max_global_work_dim' attribute ignored}}
23+
[[intelfpga::max_global_work_dim(2)]]
2424
void func_ignore() {}
2525

2626
struct FuncObj {

clang/test/SemaSYCL/intel-max-work-group-size.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void foo() {
2020

2121
#else // __SYCL_DEVICE_ONLY__
2222

23-
[[intelfpga::max_work_group_size(2, 2, 2)]] // expected-warning{{'max_work_group_size' attribute ignored}}
23+
[[intelfpga::max_work_group_size(2, 2, 2)]]
2424
void func_ignore() {}
2525

2626
struct FuncObj {

clang/test/SemaSYCL/intel-restrict.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// RUN: %clang_cc1 %s -fsyntax-only -fsycl -fsycl-is-device -triple spir64 -DCHECKDIAG -verify
22
// RUN: %clang_cc1 %s -fsyntax-only -ast-dump -fsycl -fsycl-is-device -triple spir64 | FileCheck %s
33

4-
[[intel::kernel_args_restrict]] // expected-warning{{'kernel_args_restrict' attribute ignored}}
4+
[[intel::kernel_args_restrict]]
55
void func_ignore() {}
66

77
struct FuncObj {

clang/test/SemaSYCL/num_simd_work_items.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void foo() {
2020

2121
#else // __SYCL_DEVICE_ONLY__
2222

23-
[[intelfpga::num_simd_work_items(2)]] // expected-warning{{'num_simd_work_items' attribute ignored}}
23+
[[intelfpga::num_simd_work_items(2)]]
2424
void func_ignore() {}
2525

2626
struct FuncObj {

0 commit comments

Comments
 (0)