Skip to content

Commit a7d3348

Browse files
committed
Add a sycl-post-link test
1 parent 9333803 commit a7d3348

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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:

0 commit comments

Comments
 (0)