Skip to content

Commit 07f4086

Browse files
committed
Use a simpler implicit-check-not and explicitly CHECK for every declare
1 parent 2fe5d5c commit 07f4086

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

llvm/test/CodeGen/AMDGPU/preload-implicit-kernargs-debug-info.ll

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
; RUN: opt -mtriple=amdgcn-amd-amdhsa -mcpu=gfx940 -passes='amdgpu-attributor,function(amdgpu-lower-kernel-arguments)' -amdgpu-kernarg-preload-count=16 -S < %s 2>&1 \
2-
; RUN: | FileCheck -implicit-check-not='declare {{.*}} !dbg' %s
2+
; RUN: | FileCheck --match-full-lines --implicit-check-not='declare' %s
33

4-
; The real test is via the -implicit-check-not, which confirms we do not
5-
; leave behind a declaration which references the same DISubprogram metadata.
4+
; Confirms we do not leave behind a declaration which references the same
5+
; DISubprogram metadata.
66

7-
; CHECK: define amdgpu_kernel void @preload_block_count_x{{.*}} !dbg ![[#]]
7+
; CHECK: define amdgpu_kernel void @preload_block_count_x{{.*}} !dbg ![[#]] !max_work_group_size ![[#]] {
8+
; CHECK: declare void @0{{.*}} #[[#]]
9+
; CHECK: declare noundef align 4 ptr addrspace(4) @llvm.amdgcn.implicitarg.ptr() #[[#]]
10+
; CHECK: declare noundef align 4 ptr addrspace(4) @llvm.amdgcn.kernarg.segment.ptr() #[[#]]
811

912
define amdgpu_kernel void @preload_block_count_x(ptr addrspace(1) %out) !dbg !4 !max_work_group_size !7 {
1013
%imp_arg_ptr = call ptr addrspace(4) @llvm.amdgcn.implicitarg.ptr()

0 commit comments

Comments
 (0)