Skip to content

Commit 197fe32

Browse files
committed
add gen
1 parent 8665659 commit 197fe32

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

llvm/test/DebugInfo/RISCV/relax_dwo_ranges.ll

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
; RUN: llc -dwarf-version=5 -split-dwarf-file=foo.dwo -O0 -mtriple=riscv64-unknown-linux-gnu -filetype=obj relax_dwo_ranges.ll -o %t.o
2222
; RUN: llvm-dwarfdump -v %t.o | FileCheck --check-prefix=DWARF5 %s
2323
; RUN: llvm-dwarfdump --debug-info %t.o > /dev/null 2>&1 | count 0
24-
; RUN: llvm-objdump -h %t | FileCheck --check-prefix=HDR %s
24+
; RUN: llvm-objdump -h %t.o | FileCheck --check-prefix=HDR %s
2525

2626
; RUN: llc -dwarf-version=4 -split-dwarf-file=foo.dwo -O0 -mtriple=riscv64-unknown-linux-gnu -filetype=obj relax_dwo_ranges.ll -o %t.o
2727
; RUN: llvm-dwarfdump -v %t.o | FileCheck --check-prefix=DWARF4 %s
2828
; RUN: llvm-dwarfdump --debug-info %t.o > /dev/null 2>&1 | count 0
29-
; RUN: llvm-objdump -h %t | FileCheck --check-prefix=HDR %s
29+
; RUN: llvm-objdump -h %t.o | FileCheck --check-prefix=HDR %s
3030

3131
; Make sure we don't produce any relocations in any .dwo section
3232
; HDR-NOT: .rela.{{.*}}.dwo
@@ -35,7 +35,7 @@
3535
; DWARF5: .debug_info.dwo contents:
3636
; DWARF5: DW_TAG_subprogram
3737
; DWARF5-NEXT: DW_AT_low_pc [DW_FORM_addrx] (indexed (00000000) address = 0x0000000000000000 ".text")
38-
; DWARF5-NEXT: DW_AT_high_pc [DW_FORM_addrx] (indexed (00000001) address = 0x0000000000000044 ".text")
38+
; DWARF5-NEXT: DW_AT_high_pc [DW_FORM_addrx] (indexed (00000001) address = 0x000000000000002c ".text")
3939
; DWARF5: DW_AT_name {{.*}} "square")
4040
; DWARF5: DW_TAG_formal_parameter
4141

@@ -46,6 +46,7 @@
4646
; DWARF5: Addrs: [
4747
; DWARF5-NEXT: 0x0000000000000000
4848
; DWARF5-NEXT: 0x000000000000002c
49+
; DWARF5-NEXT: 0x000000000000002c
4950
; DWARF5-NEXT: 0x000000000000003e
5051
; DWARF5-NEXT: 0x000000000000006e
5152
; DWARF5-NEXT: ]
@@ -56,10 +57,9 @@
5657
; entries respectively
5758
; DWARF5: .debug_rnglists.dwo contents:
5859
; DWARF5: ranges:
59-
; DWARF5-NEXT: 0x00000014: [DW_RLE_startx_length]: 0x0000000000000001, 0x0000000000000012 => [0x000000000000002c, 0x000000000000003e)
60-
; DWARF5-NEXT: 0x00000017: [DW_RLE_end_of_list ]
61-
; DWARF5-NEXT: 0x00000018: [DW_RLE_startx_endx ]: 0x0000000000000002, 0x0000000000000003 => [0x000000000000003e, 0x000000000000006e)
60+
; DWARF5-NEXT: 0x00000014: [DW_RLE_startx_length]: 0x0000000000000002, 0x0000000000000012 => [0x000000000000002c, 0x000000000000003e)
6261
; DWARF5-NEXT: 0x00000017: [DW_RLE_end_of_list ]
62+
; DWARF5-NEXT: 0x00000018: [DW_RLE_startx_endx ]: 0x0000000000000003, 0x0000000000000004 => [0x000000000000003e, 0x000000000000006e)
6363
; DWARF5-NEXT: 0x0000001b: [DW_RLE_end_of_list ]
6464
; DWARF5-EMPTY:
6565

@@ -68,17 +68,17 @@
6868
; DWARF4: .debug_info.dwo contents:
6969
; DWARF4: DW_TAG_subprogram
7070
; DWARF4-NEXT: DW_AT_low_pc [DW_FORM_GNU_addr_index] (indexed (00000000) address = 0x0000000000000000 ".text")
71-
; DWARF4-NEXT: DW_AT_high_pc [DW_FORM_GNU_addr_index] (indexed (00000001) address = 0x0000000000000044 ".text")
71+
; DWARF4-NEXT: DW_AT_high_pc [DW_FORM_GNU_addr_index] (indexed (00000001) address = 0x000000000000002c ".text")
7272
; DWARF4: DW_AT_name {{.*}} "square")
7373

7474
; DWARF4: DW_TAG_subprogram
75-
; DWARF4-NEXT: DW_AT_low_pc [DW_FORM_GNU_addr_index] (indexed (00000002) address = 0x0000000000000046 ".text")
76-
; DWARF4-NEXT: DW_AT_high_pc [DW_FORM_data4] (0x00000024)
75+
; DWARF4-NEXT: DW_AT_low_pc [DW_FORM_GNU_addr_index] (indexed (00000002) address = 0x000000000000002c ".text")
76+
; DWARF4-NEXT: DW_AT_high_pc [DW_FORM_data4] (0x00000012)
7777
; DWARF4: DW_AT_name {{.*}} "boo")
7878

7979
; DWARF4: DW_TAG_subprogram
80-
; DWARF4-NEXT: DW_AT_low_pc [DW_FORM_GNU_addr_index] (indexed (00000003) address = 0x000000000000006c ".text")
81-
; DWARF4-NEXT: DW_AT_high_pc [DW_FORM_GNU_addr_index] (indexed (00000004) address = 0x00000000000000b0 ".text")
80+
; DWARF4-NEXT: DW_AT_low_pc [DW_FORM_GNU_addr_index] (indexed (00000003) address = 0x000000000000003e ".text")
81+
; DWARF4-NEXT: DW_AT_high_pc [DW_FORM_GNU_addr_index] (indexed (00000004) address = 0x000000000000006e ".text")
8282
; DWARF4: DW_AT_name {{.*}} "main")
8383

8484
; HDR-NOT: .rela.{{.*}}.dwo
@@ -88,11 +88,9 @@
8888
; DWARF4: Addrs: [
8989
; DWARF4-NEXT: 0x0000000000000000
9090
; DWARF4-NEXT: 0x000000000000002c
91+
; DWARF4-NEXT: 0x000000000000002c
9192
; DWARF4-NEXT: 0x000000000000003e
92-
; DWARF4-NEXT: 0x0000000000000044
93-
; DWARF4-NEXT: 0x0000000000000046
94-
; DWARF4-NEXT: 0x000000000000006c
95-
; DWARF4-NEXT: 0x00000000000000b0
93+
; DWARF4-NEXT: 0x000000000000006e
9694
; DWARF4-NEXT: ]
9795

9896
; HDR-NOT: .rela.{{.*}}.dwo

0 commit comments

Comments
 (0)