Skip to content

Commit d61d118

Browse files
committed
reword test with -print-after=finalize-isel
1 parent 72932c8 commit d61d118

File tree

1 file changed

+5
-19
lines changed

1 file changed

+5
-19
lines changed

llvm/test/DebugInfo/NVPTX/debug-bool-var.ll

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda | FileCheck %s
1+
; RUN: llc < %s -mtriple=nvptx64-nvidia-cuda -print-after=finalize-isel -o /dev/null 2>&1 | FileCheck %s
22

33
declare void @foo(i32)
44

@@ -12,15 +12,8 @@ entry:
1212
; foo(xyz);
1313
; }
1414
;
15-
; Verify that debug info exists for "xyz" variable
16-
;
17-
; CHECK: DW_TAG_variable
18-
; CHECK: .b8 120 // DW_AT_name
19-
; CHECK-NEXT: .b8 121
20-
; CHECK-NEXT: .b8 122
21-
; CHECK-NEXT: .b8 0
22-
; CHECK-NEXT: .b8 1 // DW_AT_decl_file
23-
; CHECK-NEXT: .b8 6 // DW_AT_decl_line
15+
; CHECK-LABEL: Machine code for function test1
16+
; CHECK: DBG_VALUE %{{[0-9]+}}:int32regs, $noreg, !"xyz", !DIExpression(), debug-location !13; test.cu:2 line no:6
2417
;
2518
%cmp = icmp eq i32 %gid, 0, !dbg !12
2619
%conv = zext i1 %cmp to i32, !dbg !12
@@ -41,15 +34,8 @@ entry:
4134
; foo(abc);
4235
; }
4336
;
44-
; Verify that debug info exists for "abc" variable
45-
;
46-
; CHECK: DW_TAG_variable
47-
; CHECK: .b8 97 // DW_AT_name
48-
; CHECK-NEXT: .b8 98
49-
; CHECK-NEXT: .b8 99
50-
; CHECK-NEXT: .b8 0
51-
; CHECK-NEXT: .b8 1 // DW_AT_decl_file
52-
; CHECK-NEXT: .b8 11 // DW_AT_decl_line
37+
; CHECK-LABEL: Machine code for function test2
38+
; CHECK: DBG_VALUE %{{[0-9]+}}:int32regs, $noreg, !"abc", !DIExpression(), debug-location !18; test.cu:12 line no:11
5339
;
5440
%cmp = icmp eq i32 %gid, 0, !dbg !17
5541
%conv = zext i1 %cmp to i32, !dbg !17

0 commit comments

Comments
 (0)