Skip to content

Commit 6c128ef

Browse files
committed
improve lit test
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 4858edf commit 6c128ef

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

llvm/test/tools/sycl-post-link/sycl-grf-size.ll

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
; RUN: FileCheck %s -input-file=%t.table
55
; RUN: FileCheck %s -input-file=%t_esimd_0.ll --check-prefixes CHECK-ESIMD-LargeGRF-IR --implicit-check-not='__ESIMD_kernel()'
66
; RUN: FileCheck %s -input-file=%t_esimd_0.prop --check-prefixes CHECK-ESIMD-LargeGRF-PROP
7-
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefixes CHECK-SYCL-LargeGRF-IR
7+
; RUN: FileCheck %s -input-file=%t_0.ll --check-prefixes CHECK-SYCL-LargeGRF-IR --implicit-check-not='__SYCL_kernel()'
88
; RUN: FileCheck %s -input-file=%t_0.prop --check-prefixes CHECK-SYCL-LargeGRF-PROP
99
; RUN: FileCheck %s -input-file=%t_0.sym --check-prefixes CHECK-SYCL-LargeGRF-SYM
10+
; RUN: FileCheck %s -input-file=%t_1.ll --check-prefixes CHECK-SYCL-IR --implicit-check-not='__SYCL_kernel_large_grf()'
1011
; RUN: FileCheck %s -input-file=%t_1.prop --check-prefixes CHECK-SYCL-PROP
1112
; RUN: FileCheck %s -input-file=%t_1.sym --check-prefixes CHECK-SYCL-SYM
13+
; RUN: FileCheck %s -input-file=%t_esimd_1.ll --check-prefixes CHECK-ESIMD-IR --implicit-check-not='__ESIMD_large_grf_kernel()'
1214
; RUN: FileCheck %s -input-file=%t_esimd_1.prop --check-prefixes CHECK-ESIMD-PROP
1315
; RUN: FileCheck %s -input-file=%t_esimd_0.sym --check-prefixes CHECK-ESIMD-LargeGRF-SYM
1416

@@ -22,22 +24,34 @@
2224

2325
; CHECK-SYCL-LargeGRF-PROP: sycl-grf-size=1|256
2426

27+
; CHECK-SYCL-LargeGRF-IR: define {{.*}} spir_kernel void @__SYCL_kernel_large_grf() #[[SYCLAttr:]]
28+
; CHECK-SYCL-LargeGRF-IR: attributes #[[SYCLAttr]]
29+
2530
; CHECK-SYCL-PROP-NOT: sycl-grf-size
2631

2732
; CHECK-SYCL-SYM: __SYCL_kernel
2833
; CHECK-SYCL-SYM-EMPTY:
2934

35+
; CHECK-SYCL-IR: __SYCL_kernel() #[[SYCLAttr:]]
36+
; CHECK-SYCL-IR: attributes #[[SYCLAttr]]
37+
3038
; CHECK-SYCL-LargeGRF-SYM: __SYCL_kernel_large_grf
3139
; CHECK-SYCL-LargeGRF-SYM-EMPTY:
3240

3341
; CHECK-ESIMD-SYM: __ESIMD_kernel
3442
; CHECK-ESIMD-SYM-EMPTY:
3543

44+
; CHECK-ESIMD-IR: __ESIMD_kernel() #[[ESIMDAttr:]]
45+
; CHECK-ESIMD-IR: attributes #[[ESIMDAttr]]
46+
3647
; CHECK-ESIMD-PROP-NOT: sycl-grf-size
3748

3849
; CHECK-ESIMD-LargeGRF-SYM: __ESIMD_large_grf_kernel
3950
; CHECK-ESIMD-LargeGRF-SYM-EMPTY:
4051

52+
; CHECK-ESIMD-LargeGRF-IR: @__ESIMD_large_grf_kernel() #[[ESIMDLargeAttr:]]
53+
; CHECK-ESIMD-LargeGRF-IR: attributes #[[ESIMDLargeAttr]]
54+
4155
; ModuleID = 'large_grf.bc'
4256
source_filename = "llvm-link"
4357
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"
@@ -49,7 +63,6 @@ entry:
4963
}
5064

5165
define weak_odr dso_local spir_kernel void @__SYCL_kernel_large_grf() #1 {
52-
; CHECK-SYCL-LargeGRF-IR: define {{.*}} spir_kernel void @__SYCL_kernel_large_grf() #[[#Attr:]]
5366
entry:
5467
ret void
5568
}
@@ -60,7 +73,6 @@ entry:
6073
}
6174

6275
define weak_odr dso_local spir_kernel void @__ESIMD_large_grf_kernel() #1 !sycl_explicit_simd !0 !intel_reqd_sub_group_size !1 {
63-
; CHECK-ESIMD-LargeGRF-IR: @__ESIMD_large_grf_kernel()
6476
entry:
6577
ret void
6678
}

0 commit comments

Comments
 (0)