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
2
2
3
3
declare void @foo (i32 )
4
4
@@ -12,15 +12,8 @@ entry:
12
12
; foo(xyz);
13
13
; }
14
14
;
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
24
17
;
25
18
%cmp = icmp eq i32 %gid , 0 , !dbg !12
26
19
%conv = zext i1 %cmp to i32 , !dbg !12
@@ -41,15 +34,8 @@ entry:
41
34
; foo(abc);
42
35
; }
43
36
;
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
53
39
;
54
40
%cmp = icmp eq i32 %gid , 0 , !dbg !17
55
41
%conv = zext i1 %cmp to i32 , !dbg !17
0 commit comments