Skip to content

Commit

Permalink
[NVPTX] Prefix "$L__" for branch label names
Browse files Browse the repository at this point in the history
A global variable may have the same name as a label, and ptxas does not accept it.
Prefix labels with $L__ to fix this.

Reviewed By: MaskRay, tra

Differential Revision: https://reviews.llvm.org/D119669
  • Loading branch information
slydiman committed Apr 30, 2022
1 parent 841fffa commit 2e7e097
Show file tree
Hide file tree
Showing 10 changed files with 67 additions and 64 deletions.
3 changes: 3 additions & 0 deletions llvm/lib/Target/NVPTX/MCTargetDesc/NVPTXMCAsmInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ NVPTXMCAsmInfo::NVPTXMCAsmInfo(const Triple &TheTriple,
SupportsExtendedDwarfLocDirective = false;
SupportsSignedData = false;

PrivateGlobalPrefix = "$L__";
PrivateLabelPrefix = PrivateGlobalPrefix;

// @TODO: Can we just disable this?
WeakDirective = "\t// .weak\t";
GlobalDirective = "\t// .globl\t";
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/CodeGen/NVPTX/f16-instructions.ll
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ define i1 @test_fcmp_ord(half %a, half %b) #0 {
; CHECK-NOF16-DAG: cvt.f32.f16 [[AF:%f[0-9]+]], [[A]];
; CHECK-NOF16-DAG: cvt.f32.f16 [[BF:%f[0-9]+]], [[B]];
; CHECK-NOF16: setp.lt.f32 [[PRED:%p[0-9]+]], [[AF]], [[BF]]
; CHECK-NEXT: @[[PRED]] bra [[LABEL:LBB.*]];
; CHECK-NEXT: @[[PRED]] bra [[LABEL:\$L__BB.*]];
; CHECK: st.u32 [%[[C]]],
; CHECK: [[LABEL]]:
; CHECK: st.u32 [%[[D]]],
Expand All @@ -620,7 +620,7 @@ else:
; CHECK-LABEL: test_phi(
; CHECK: ld.param.u64 %[[P1:rd[0-9]+]], [test_phi_param_0];
; CHECK: ld.b16 {{%h[0-9]+}}, [%[[P1]]];
; CHECK: [[LOOP:LBB[0-9_]+]]:
; CHECK: [[LOOP:\$L__BB[0-9_]+]]:
; CHECK: mov.b16 [[R:%h[0-9]+]], [[AB:%h[0-9]+]];
; CHECK: ld.b16 [[AB:%h[0-9]+]], [%[[P1]]];
; CHECK: {
Expand Down
22 changes: 11 additions & 11 deletions llvm/test/CodeGen/NVPTX/lower-aggr-copies.ll
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ entry:
; IR: ret i8* %dst

; PTX-LABEL: .visible .func (.param .b64 func_retval0) memcpy_caller
; PTX: LBB[[LABEL:[_0-9]+]]:
; PTX: $L__BB[[LABEL:[_0-9]+]]:
; PTX: ld.u8 %rs[[REG:[0-9]+]]
; PTX: st.u8 [%rd{{[0-9]+}}], %rs[[REG]]
; PTX: add.s64 %rd[[COUNTER:[0-9]+]], %rd{{[0-9]+}}, 1
; PTX: setp.lt.u64 %p[[PRED:[0-9]+]], %rd[[COUNTER]], %rd
; PTX: @%p[[PRED]] bra LBB[[LABEL]]
; PTX: @%p[[PRED]] bra $L__BB[[LABEL]]

}

Expand Down Expand Up @@ -70,12 +70,12 @@ entry:


; PTX-LABEL: .visible .func (.param .b64 func_retval0) memcpy_volatile_caller
; PTX: LBB[[LABEL:[_0-9]+]]:
; PTX: $L__BB[[LABEL:[_0-9]+]]:
; PTX: ld.volatile.u8 %rs[[REG:[0-9]+]]
; PTX: st.volatile.u8 [%rd{{[0-9]+}}], %rs[[REG]]
; PTX: add.s64 %rd[[COUNTER:[0-9]+]], %rd{{[0-9]+}}, 1
; PTX: setp.lt.u64 %p[[PRED:[0-9]+]], %rd[[COUNTER]], %rd
; PTX: @%p[[PRED]] bra LBB[[LABEL]]
; PTX: @%p[[PRED]] bra $L__BB[[LABEL]]
}

define i8* @memcpy_casting_caller(i32* %dst, i32* %src, i64 %n) #0 {
Expand Down Expand Up @@ -130,11 +130,11 @@ entry:
; PTX-LABEL: .visible .func (.param .b64 func_retval0) memset_caller(
; PTX: ld.param.u32 %r[[C:[0-9]+]]
; PTX: cvt.u16.u32 %rs[[REG:[0-9]+]], %r[[C]];
; PTX: LBB[[LABEL:[_0-9]+]]:
; PTX: $L__BB[[LABEL:[_0-9]+]]:
; PTX: st.u8 [%rd{{[0-9]+}}], %rs[[REG]]
; PTX: add.s64 %rd[[COUNTER:[0-9]+]], %rd{{[0-9]+}}, 1
; PTX: setp.lt.u64 %p[[PRED:[0-9]+]], %rd[[COUNTER]], %rd
; PTX: @%p[[PRED]] bra LBB[[LABEL]]
; PTX: @%p[[PRED]] bra $L__BB[[LABEL]]
}

define i8* @volatile_memset_caller(i8* %dst, i32 %c, i64 %n) #0 {
Expand Down Expand Up @@ -166,20 +166,20 @@ entry:
; PTX: ld.param.u64 %rd[[N:[0-9]+]]
; PTX-DAG: setp.eq.s64 %p[[NEQ0:[0-9]+]], %rd[[N]], 0
; PTX-DAG: setp.ge.u64 %p[[SRC_GT_THAN_DST:[0-9]+]], %rd{{[0-9]+}}, %rd{{[0-9]+}}
; PTX-NEXT: @%p[[SRC_GT_THAN_DST]] bra LBB[[FORWARD_BB:[0-9_]+]]
; PTX-NEXT: @%p[[SRC_GT_THAN_DST]] bra $L__BB[[FORWARD_BB:[0-9_]+]]
; -- this is the backwards copying BB
; PTX: @%p[[NEQ0]] bra LBB[[EXIT:[0-9_]+]]
; PTX: @%p[[NEQ0]] bra $L__BB[[EXIT:[0-9_]+]]
; PTX: add.s64 %rd{{[0-9]}}, %rd{{[0-9]}}, -1
; PTX: ld.u8 %rs[[ELEMENT:[0-9]+]]
; PTX: st.u8 [%rd{{[0-9]+}}], %rs[[ELEMENT]]
; -- this is the forwards copying BB
; PTX: LBB[[FORWARD_BB]]:
; PTX: @%p[[NEQ0]] bra LBB[[EXIT]]
; PTX: $L__BB[[FORWARD_BB]]:
; PTX: @%p[[NEQ0]] bra $L__BB[[EXIT]]
; PTX: ld.u8 %rs[[ELEMENT2:[0-9]+]]
; PTX: st.u8 [%rd{{[0-9]+}}], %rs[[ELEMENT2]]
; PTX: add.s64 %rd{{[0-9]+}}, %rd{{[0-9]+}}, 1
; -- exit block
; PTX: LBB[[EXIT]]:
; PTX: $L__BB[[EXIT]]:
; PTX-NEXT: st.param.b64 [func_retval0
; PTX-NEXT: ret
}
24 changes: 12 additions & 12 deletions llvm/test/DebugInfo/NVPTX/cu-range-hole.ll
Original file line number Diff line number Diff line change
Expand Up @@ -8,32 +8,32 @@
; CHECK: )
; CHECK: {
; CHECK: .loc 1 1 0
; CHECK: Lfunc_begin0:
; CHECK: $L__func_begin0:
; CHECK: .loc 1 1 0
; CHECK: .loc 1 1 0
; CHECK: ret;
; CHECK: Lfunc_end0:
; CHECK: $L__func_end0:
; CHECK: }

; CHECK: .visible .func (.param .b32 func_retval0) a(
; CHECK: .param .b32 a_param_0
; CHECK: )
; CHECK: {
; CHECK: Lfunc_begin1:
; CHECK: $L__func_begin1:
; CHECK-NOT: .loc
; CHECK: ret;
; CHECK: Lfunc_end1:
; CHECK: $L__func_end1:
; CHECK: }

; CHECK: .visible .func (.param .b32 func_retval0) d(
; CHECK: .param .b32 d_param_0
; CHECK: )
; CHECK: {
; CHECK: .loc 1 3 0
; CHECK: Lfunc_begin2:
; CHECK: $L__func_begin2:
; CHECK: .loc 1 3 0
; CHECK: ret;
; CHECK: Lfunc_end2:
; CHECK: $L__func_end2:
; CHECK: }

; CHECK: .file 1 "{{.*}}b.c"
Expand Down Expand Up @@ -221,11 +221,11 @@ entry:
; CHECK-NEXT: .b8 99
; CHECK-NEXT: .b8 101
; CHECK-NEXT: .b8 0
; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 Lfunc_end2 // DW_AT_high_pc
; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 $L__func_end2 // DW_AT_high_pc
; CHECK-NEXT: .b8 2 // Abbrev [2] 0x65:0x27 DW_TAG_subprogram
; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 Lfunc_end0 // DW_AT_high_pc
; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT: .b8 1 // DW_AT_frame_base
; CHECK-NEXT: .b8 156
; CHECK-NEXT: .b8 98 // DW_AT_name
Expand All @@ -243,8 +243,8 @@ entry:
; CHECK-NEXT: .b32 179 // DW_AT_type
; CHECK-NEXT: .b8 0 // End Of Children Mark
; CHECK-NEXT: .b8 2 // Abbrev [2] 0x8c:0x27 DW_TAG_subprogram
; CHECK-NEXT: .b64 Lfunc_begin2 // DW_AT_low_pc
; CHECK-NEXT: .b64 Lfunc_end2 // DW_AT_high_pc
; CHECK-NEXT: .b64 $L__func_begin2 // DW_AT_low_pc
; CHECK-NEXT: .b64 $L__func_end2 // DW_AT_high_pc
; CHECK-NEXT: .b8 1 // DW_AT_frame_base
; CHECK-NEXT: .b8 156
; CHECK-NEXT: .b8 100 // DW_AT_name
Expand Down
8 changes: 4 additions & 4 deletions llvm/test/DebugInfo/NVPTX/dbg-declare-alloca.ll
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@
; CHECK-NEXT: .b8 115
; CHECK-NEXT: .b8 116
; CHECK-NEXT: .b8 0
; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 Lfunc_end0 // DW_AT_high_pc
; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT: .b8 2 // Abbrev [2] 0x31:0x3c DW_TAG_subprogram
; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 Lfunc_end0 // DW_AT_high_pc
; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT: .b8 1 // DW_AT_frame_base
; CHECK-NEXT: .b8 156
; CHECK-NEXT: .b8 117 // DW_AT_name
Expand Down
8 changes: 4 additions & 4 deletions llvm/test/DebugInfo/NVPTX/debug-addr-class.ll
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata)
; CHECK-NEXT:.b8 109
; CHECK-NEXT:.b8 112
; CHECK-NEXT:.b8 0
; CHECK-NEXT:.b64 Lfunc_begin0 // DW_AT_low_pc
; CHECK-NEXT:.b64 Lfunc_end0 // DW_AT_high_pc
; CHECK-NEXT:.b64 $L__func_begin0 // DW_AT_low_pc
; CHECK-NEXT:.b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT:.b8 2 // Abbrev [2] 0x65:0x1a DW_TAG_variable
; CHECK-NEXT:.b8 71 // DW_AT_name
; CHECK-NEXT:.b8 76
Expand Down Expand Up @@ -299,8 +299,8 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata)
; CHECK-NEXT:.b8 3
; CHECK-NEXT:.b64 SHARED
; CHECK-NEXT:.b8 4 // Abbrev [4] 0xa0:0x45 DW_TAG_subprogram
; CHECK-NEXT:.b64 Lfunc_begin0 // DW_AT_low_pc
; CHECK-NEXT:.b64 Lfunc_end0 // DW_AT_high_pc
; CHECK-NEXT:.b64 $L__func_begin0 // DW_AT_low_pc
; CHECK-NEXT:.b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT:.b8 1 // DW_AT_frame_base
; CHECK-NEXT:.b8 156
; CHECK-NEXT:.b8 116 // DW_AT_MIPS_linkage_name
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/DebugInfo/NVPTX/debug-file-loc.ll
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ bb:
; CHECK-NEXT: .b8 105
; CHECK-NEXT: .b8 114
; CHECK-NEXT: .b8 0
; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 Lfunc_end1 // DW_AT_high_pc
; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 $L__func_end1 // DW_AT_high_pc
; CHECK-NEXT: }
; CHECK-NEXT: .section .debug_loc { }
; CHECK-NOT: debug_
Expand Down
26 changes: 13 additions & 13 deletions llvm/test/DebugInfo/NVPTX/debug-info.ll
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
; CHECK: .loc [[DEBUG_INFO_CU]] 7 9
; CHECK: setp.ge.s32 %p{{.+}}, %r{{.+}}, %r{{.+}};
; CHECK: .loc [[DEBUG_INFO_CU]] 7 7
; CHECK: @%p{{.+}} bra [[BB:.+]];
; CHECK: @%p{{.+}} bra [[BB:\$L__.+]];
; CHECK: ld.param.f32 %f{{.+}}, [{{.+}}];
; CHECK: ld.param.u64 %rd{{.+}}, [{{.+}}];
; CHECK: cvta.to.global.u64 %rd{{.+}}, %rd{{.+}};
Expand Down Expand Up @@ -743,8 +743,8 @@ if.end: ; preds = %if.then, %entry
; CHECK-NEXT:.b8 114
; CHECK-NEXT:.b8 121
; CHECK-NEXT:.b8 0
; CHECK-NEXT:.b64 Lfunc_begin0 // DW_AT_low_pc
; CHECK-NEXT:.b64 Lfunc_end0 // DW_AT_high_pc
; CHECK-NEXT:.b64 $L__func_begin0 // DW_AT_low_pc
; CHECK-NEXT:.b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT:.b8 2 // Abbrev [2] 0x41:0x588 DW_TAG_namespace
; CHECK-NEXT:.b8 115 // DW_AT_name
; CHECK-NEXT:.b8 116
Expand Down Expand Up @@ -8308,8 +8308,8 @@ if.end: ; preds = %if.then, %entry
; CHECK-NEXT:.b32 3345 // DW_AT_type
; CHECK-NEXT:.b8 0 // End Of Children Mark
; CHECK-NEXT:.b8 40 // Abbrev [40] 0x2671:0xbf DW_TAG_subprogram
; CHECK-NEXT:.b64 Lfunc_begin0 // DW_AT_low_pc
; CHECK-NEXT:.b64 Lfunc_end0 // DW_AT_high_pc
; CHECK-NEXT:.b64 $L__func_begin0 // DW_AT_low_pc
; CHECK-NEXT:.b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT:.b8 1 // DW_AT_frame_base
; CHECK-NEXT:.b8 156
; CHECK-NEXT:.b8 95 // DW_AT_MIPS_linkage_name
Expand Down Expand Up @@ -8368,29 +8368,29 @@ if.end: ; preds = %if.then, %entry
; CHECK-NEXT:.b32 2332 // DW_AT_type
; CHECK-NEXT:.b8 42 // Abbrev [42] 0x26c9:0x18 DW_TAG_inlined_subroutine
; CHECK-NEXT:.b32 8432 // DW_AT_abstract_origin
; CHECK-NEXT:.b64 Ltmp0 // DW_AT_low_pc
; CHECK-NEXT:.b64 Ltmp1 // DW_AT_high_pc
; CHECK-NEXT:.b64 $L__tmp0 // DW_AT_low_pc
; CHECK-NEXT:.b64 $L__tmp1 // DW_AT_high_pc
; CHECK-NEXT:.b8 12 // DW_AT_call_file
; CHECK-NEXT:.b8 6 // DW_AT_call_line
; CHECK-NEXT:.b8 11 // DW_AT_call_column
; CHECK-NEXT:.b8 42 // Abbrev [42] 0x26e1:0x18 DW_TAG_inlined_subroutine
; CHECK-NEXT:.b32 9191 // DW_AT_abstract_origin
; CHECK-NEXT:.b64 Ltmp1 // DW_AT_low_pc
; CHECK-NEXT:.b64 Ltmp2 // DW_AT_high_pc
; CHECK-NEXT:.b64 $L__tmp1 // DW_AT_low_pc
; CHECK-NEXT:.b64 $L__tmp2 // DW_AT_high_pc
; CHECK-NEXT:.b8 12 // DW_AT_call_file
; CHECK-NEXT:.b8 6 // DW_AT_call_line
; CHECK-NEXT:.b8 24 // DW_AT_call_column
; CHECK-NEXT:.b8 42 // Abbrev [42] 0x26f9:0x18 DW_TAG_inlined_subroutine
; CHECK-NEXT:.b32 9785 // DW_AT_abstract_origin
; CHECK-NEXT:.b64 Ltmp2 // DW_AT_low_pc
; CHECK-NEXT:.b64 Ltmp3 // DW_AT_high_pc
; CHECK-NEXT:.b64 $L__tmp2 // DW_AT_low_pc
; CHECK-NEXT:.b64 $L__tmp3 // DW_AT_high_pc
; CHECK-NEXT:.b8 12 // DW_AT_call_file
; CHECK-NEXT:.b8 6 // DW_AT_call_line
; CHECK-NEXT:.b8 37 // DW_AT_call_column
; CHECK-NEXT:.b8 43 // Abbrev [43] 0x2711:0x1e DW_TAG_inlined_subroutine
; CHECK-NEXT:.b32 9791 // DW_AT_abstract_origin
; CHECK-NEXT:.b64 Ltmp9 // DW_AT_low_pc
; CHECK-NEXT:.b64 Ltmp10 // DW_AT_high_pc
; CHECK-NEXT:.b64 $L__tmp9 // DW_AT_low_pc
; CHECK-NEXT:.b64 $L__tmp10 // DW_AT_high_pc
; CHECK-NEXT:.b8 12 // DW_AT_call_file
; CHECK-NEXT:.b8 8 // DW_AT_call_line
; CHECK-NEXT:.b8 5 // DW_AT_call_column
Expand Down
20 changes: 10 additions & 10 deletions llvm/test/DebugInfo/NVPTX/debug-loc-offset.ll
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
; CHECK: .visible .func (.param .b32 func_retval0) _Z3bari(
; CHECK: {
; CHECK: .loc [[CU1:[0-9]+]] 1 0
; CHECK: Lfunc_begin0:
; CHECK: $L__func_begin0:
; CHECK: .loc [[CU1]] 1 0

; CHECK: //DEBUG_VALUE: bar:b <- {{[0-9]+}}
Expand Down Expand Up @@ -42,7 +42,7 @@ declare void @llvm.dbg.value(metadata, metadata, metadata) #1
; CHECK: .visible .func _Z3baz1A(
; CHECK: {
; CHECK: .loc [[CU2:[0-9]+]] 6 0
; CHECK: Lfunc_begin1:
; CHECK: $L__func_begin1:
; CHECK: .loc [[CU2]] 6 0
; CHECK-NOT: //DEBUG_VALUE: baz:z
; CHECK: //DEBUG_VALUE: baz:z <- undef
Expand Down Expand Up @@ -324,15 +324,15 @@ attributes #2 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp
; CHECK-NEXT: .b8 99
; CHECK-NEXT: .b8 99
; CHECK-NEXT: .b8 0
; CHECK-NEXT: .b64 Lfunc_begin1 // DW_AT_low_pc
; CHECK-NEXT: .b64 Lfunc_end1 // DW_AT_high_pc
; CHECK-NEXT: .b64 $L__func_begin1 // DW_AT_low_pc
; CHECK-NEXT: .b64 $L__func_end1 // DW_AT_high_pc
; CHECK-NEXT: .b8 2 // Abbrev [2] 0x64:0x4 DW_TAG_structure_type
; CHECK-NEXT: .b8 65 // DW_AT_name
; CHECK-NEXT: .b8 0
; CHECK-NEXT: .b8 1 // DW_AT_declaration
; CHECK-NEXT: .b8 3 // Abbrev [3] 0x68:0x3a DW_TAG_subprogram
; CHECK-NEXT: .b64 Lfunc_begin1 // DW_AT_low_pc
; CHECK-NEXT: .b64 Lfunc_end1 // DW_AT_high_pc
; CHECK-NEXT: .b64 $L__func_begin1 // DW_AT_low_pc
; CHECK-NEXT: .b64 $L__func_end1 // DW_AT_high_pc
; CHECK-NEXT: .b8 1 // DW_AT_frame_base
; CHECK-NEXT: .b8 156
; CHECK-NEXT: .b8 95 // DW_AT_MIPS_linkage_name
Expand Down Expand Up @@ -440,11 +440,11 @@ attributes #2 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp
; CHECK-NEXT: .b8 99
; CHECK-NEXT: .b8 99
; CHECK-NEXT: .b8 0
; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 Lfunc_end0 // DW_AT_high_pc
; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT: .b8 6 // Abbrev [6] 0x64:0x30 DW_TAG_subprogram
; CHECK-NEXT: .b64 Lfunc_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 Lfunc_end0 // DW_AT_high_pc
; CHECK-NEXT: .b64 $L__func_begin0 // DW_AT_low_pc
; CHECK-NEXT: .b64 $L__func_end0 // DW_AT_high_pc
; CHECK-NEXT: .b8 1 // DW_AT_frame_base
; CHECK-NEXT: .b8 156
; CHECK-NEXT: .b8 95 // DW_AT_MIPS_linkage_name
Expand Down
12 changes: 6 additions & 6 deletions llvm/test/DebugInfo/NVPTX/debug-name-table.ll
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@

; CHECK-LABEL: .section .debug_pubnames
; CHECK-NEXT: {
; CHECK-NEXT: .b32 LpubNames_end0-LpubNames_start0
; CHECK-NEXT: LpubNames_start0:
; CHECK: LpubNames_end0:
; CHECK-NEXT: .b32 $L__pubNames_end0-$L__pubNames_start0
; CHECK-NEXT: $L__pubNames_start0:
; CHECK: $L__pubNames_end0:
; CHECK-NEXT: }

; CHECK-LABEL: .section .debug_pubtypes
; CHECK-NEXT: {
; CHECK-NEXT: .b32 LpubTypes_end0-LpubTypes_start0
; CHECK-NEXT: LpubTypes_start0:
; CHECK: LpubTypes_end0:
; CHECK-NEXT: .b32 $L__pubTypes_end0-$L__pubTypes_start0
; CHECK-NEXT: $L__pubTypes_start0:
; CHECK: $L__pubTypes_end0:
; CHECK-NEXT: }

; Function Attrs: nounwind ssp uwtable
Expand Down

0 comments on commit 2e7e097

Please sign in to comment.