File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
llvm/test/tools/sycl-post-link Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ ; This test checks that the sycl-post-link tool correctly handles
2
+ ; intel_reqd_sub_group_siz metadata.
3
+
4
+ ; RUN: sycl-post-link -properties -emit-program-metadata -device-globals -S < %s -o %t.files.table
5
+ ; RUN: FileCheck %s -input-file=%t.files.table --check-prefixes CHECK-TABLE
6
+ ; RUN: FileCheck %s -input-file=%t.files_0.prop --match-full-lines --check-prefixes CHECK-PROP
7
+
8
+ target triple = "amdgcn-amd-amdhsa"
9
+
10
+ !0 = !{i32 64 }
11
+
12
+ define weak_odr amdgpu_kernel void @_ZTS7Kernel1 (float %arg1 ) !intel_reqd_sub_group_size !0 {
13
+ call void @foo (float %arg1 )
14
+ ret void
15
+ }
16
+
17
+ declare void @foo (float )
18
+
19
+ ; CHECK-PROP: [SYCL/program metadata]
20
+ ; CHECK-PROP-NEXT: _ZTS7Kernel1@reqd_sub_group_size=1|64
21
+
22
+ ; CHECK-TABLE: [Code|Properties]
23
+ ; CHECK-TABLE-NEXT: {{.*}}files_0.prop
24
+ ; CHECK-TABLE-EMPTY:
You can’t perform that action at this time.
0 commit comments