|
21 | 21 | ; 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 |
22 | 22 | ; RUN: llvm-dwarfdump -v %t.o | FileCheck --check-prefix=DWARF5 %s |
23 | 23 | ; 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 |
25 | 25 |
|
26 | 26 | ; 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 |
27 | 27 | ; RUN: llvm-dwarfdump -v %t.o | FileCheck --check-prefix=DWARF4 %s |
28 | 28 | ; 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 |
30 | 30 |
|
31 | 31 | ; Make sure we don't produce any relocations in any .dwo section |
32 | 32 | ; HDR-NOT: .rela.{{.*}}.dwo |
|
35 | 35 | ; DWARF5: .debug_info.dwo contents: |
36 | 36 | ; DWARF5: DW_TAG_subprogram |
37 | 37 | ; 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") |
39 | 39 | ; DWARF5: DW_AT_name {{.*}} "square") |
40 | 40 | ; DWARF5: DW_TAG_formal_parameter |
41 | 41 |
|
|
46 | 46 | ; DWARF5: Addrs: [ |
47 | 47 | ; DWARF5-NEXT: 0x0000000000000000 |
48 | 48 | ; DWARF5-NEXT: 0x000000000000002c |
| 49 | +; DWARF5-NEXT: 0x000000000000002c |
49 | 50 | ; DWARF5-NEXT: 0x000000000000003e |
50 | 51 | ; DWARF5-NEXT: 0x000000000000006e |
51 | 52 | ; DWARF5-NEXT: ] |
|
56 | 57 | ; entries respectively |
57 | 58 | ; DWARF5: .debug_rnglists.dwo contents: |
58 | 59 | ; 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) |
62 | 61 | ; DWARF5-NEXT: 0x00000017: [DW_RLE_end_of_list ] |
| 62 | +; DWARF5-NEXT: 0x00000018: [DW_RLE_startx_endx ]: 0x0000000000000003, 0x0000000000000004 => [0x000000000000003e, 0x000000000000006e) |
63 | 63 | ; DWARF5-NEXT: 0x0000001b: [DW_RLE_end_of_list ] |
64 | 64 | ; DWARF5-EMPTY: |
65 | 65 |
|
|
68 | 68 | ; DWARF4: .debug_info.dwo contents: |
69 | 69 | ; DWARF4: DW_TAG_subprogram |
70 | 70 | ; 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") |
72 | 72 | ; DWARF4: DW_AT_name {{.*}} "square") |
73 | 73 |
|
74 | 74 | ; 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) |
77 | 77 | ; DWARF4: DW_AT_name {{.*}} "boo") |
78 | 78 |
|
79 | 79 | ; 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") |
82 | 82 | ; DWARF4: DW_AT_name {{.*}} "main") |
83 | 83 |
|
84 | 84 | ; HDR-NOT: .rela.{{.*}}.dwo |
|
88 | 88 | ; DWARF4: Addrs: [ |
89 | 89 | ; DWARF4-NEXT: 0x0000000000000000 |
90 | 90 | ; DWARF4-NEXT: 0x000000000000002c |
| 91 | +; DWARF4-NEXT: 0x000000000000002c |
91 | 92 | ; DWARF4-NEXT: 0x000000000000003e |
92 | | -; DWARF4-NEXT: 0x0000000000000044 |
93 | | -; DWARF4-NEXT: 0x0000000000000046 |
94 | | -; DWARF4-NEXT: 0x000000000000006c |
95 | | -; DWARF4-NEXT: 0x00000000000000b0 |
| 93 | +; DWARF4-NEXT: 0x000000000000006e |
96 | 94 | ; DWARF4-NEXT: ] |
97 | 95 |
|
98 | 96 | ; HDR-NOT: .rela.{{.*}}.dwo |
|
0 commit comments