Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / Inputs / dwarf5-loclist.s
blob972c62146d3574404c129a442aaba4c6ec393f9f
1 # helper.cpp -O1 -g2 -gdwarf-5 -S -o helper.s
2 # struct Foo1 {
3 # int x;
4 # int y;
5 # };
6 # inline __attribute__((always_inline))
7 # static int helper(Foo1 &f) {
8 # return f.x + 3;
9 # }
10 # int foo(int i) {
11 # Foo1 foo;
12 # foo.x = i;
13 # foo.y = 3;
14 # return helper(foo);
15 # }
17 .text
18 .file "helper.cpp"
19 .globl _Z3fooi # -- Begin function _Z3fooi
20 .p2align 4, 0x90
21 .type _Z3fooi,@function
22 _Z3fooi: # @_Z3fooi
23 .Lfunc_begin0:
24 .file 0 "/dwarf4CrossCULocList" "helper.cpp" md5 0xc9271b4999165863c559e42d691423d1
25 .cfi_startproc
26 # %bb.0: # %entry
27 #DEBUG_VALUE: foo:i <- $edi
28 #DEBUG_VALUE: foo:foo <- [DW_OP_LLVM_fragment 0 32] $edi
29 # kill: def $edi killed $edi def $rdi
30 #DEBUG_VALUE: foo:foo <- [DW_OP_LLVM_fragment 32 32] 3
31 .loc 0 7 14 prologue_end # helper.cpp:7:14
32 leal 3(%rdi), %eax
33 .Ltmp0:
34 .loc 0 13 3 # helper.cpp:13:3
35 retq
36 .Ltmp1:
37 .Lfunc_end0:
38 .size _Z3fooi, .Lfunc_end0-_Z3fooi
39 .cfi_endproc
40 # -- End function
41 .section .debug_loclists,"",@progbits
42 .long .Ldebug_list_header_end0-.Ldebug_list_header_start0 # Length
43 .Ldebug_list_header_start0:
44 .short 5 # Version
45 .byte 8 # Address size
46 .byte 0 # Segment selector size
47 .long 1 # Offset entry count
48 .Lloclists_table_base0:
49 .long .Ldebug_loc0-.Lloclists_table_base0
50 .Ldebug_loc0:
51 .byte 4 # DW_LLE_offset_pair
52 .uleb128 .Lfunc_begin0-.Lfunc_begin0 # starting offset
53 .uleb128 .Lfunc_end0-.Lfunc_begin0 # ending offset
54 .byte 7 # Loc expr size
55 .byte 85 # super-register DW_OP_reg5
56 .byte 147 # DW_OP_piece
57 .byte 4 # 4
58 .byte 51 # DW_OP_lit3
59 .byte 159 # DW_OP_stack_value
60 .byte 147 # DW_OP_piece
61 .byte 4 # 4
62 .byte 0 # DW_LLE_end_of_list
63 .Ldebug_list_header_end0:
64 .section .debug_abbrev,"",@progbits
65 .byte 1 # Abbreviation Code
66 .byte 17 # DW_TAG_compile_unit
67 .byte 1 # DW_CHILDREN_yes
68 .byte 37 # DW_AT_producer
69 .byte 37 # DW_FORM_strx1
70 .byte 19 # DW_AT_language
71 .byte 5 # DW_FORM_data2
72 .byte 3 # DW_AT_name
73 .byte 37 # DW_FORM_strx1
74 .byte 114 # DW_AT_str_offsets_base
75 .byte 23 # DW_FORM_sec_offset
76 .byte 16 # DW_AT_stmt_list
77 .byte 23 # DW_FORM_sec_offset
78 .byte 27 # DW_AT_comp_dir
79 .byte 37 # DW_FORM_strx1
80 .byte 17 # DW_AT_low_pc
81 .byte 27 # DW_FORM_addrx
82 .byte 18 # DW_AT_high_pc
83 .byte 6 # DW_FORM_data4
84 .byte 115 # DW_AT_addr_base
85 .byte 23 # DW_FORM_sec_offset
86 .ascii "\214\001" # DW_AT_loclists_base
87 .byte 23 # DW_FORM_sec_offset
88 .byte 0 # EOM(1)
89 .byte 0 # EOM(2)
90 .byte 2 # Abbreviation Code
91 .byte 46 # DW_TAG_subprogram
92 .byte 1 # DW_CHILDREN_yes
93 .byte 110 # DW_AT_linkage_name
94 .byte 37 # DW_FORM_strx1
95 .byte 3 # DW_AT_name
96 .byte 37 # DW_FORM_strx1
97 .byte 58 # DW_AT_decl_file
98 .byte 11 # DW_FORM_data1
99 .byte 59 # DW_AT_decl_line
100 .byte 11 # DW_FORM_data1
101 .byte 73 # DW_AT_type
102 .byte 19 # DW_FORM_ref4
103 .byte 32 # DW_AT_inline
104 .byte 33 # DW_FORM_implicit_const
105 .byte 1
106 .byte 0 # EOM(1)
107 .byte 0 # EOM(2)
108 .byte 3 # Abbreviation Code
109 .byte 5 # DW_TAG_formal_parameter
110 .byte 0 # DW_CHILDREN_no
111 .byte 3 # DW_AT_name
112 .byte 37 # DW_FORM_strx1
113 .byte 58 # DW_AT_decl_file
114 .byte 11 # DW_FORM_data1
115 .byte 59 # DW_AT_decl_line
116 .byte 11 # DW_FORM_data1
117 .byte 73 # DW_AT_type
118 .byte 19 # DW_FORM_ref4
119 .byte 0 # EOM(1)
120 .byte 0 # EOM(2)
121 .byte 4 # Abbreviation Code
122 .byte 36 # DW_TAG_base_type
123 .byte 0 # DW_CHILDREN_no
124 .byte 3 # DW_AT_name
125 .byte 37 # DW_FORM_strx1
126 .byte 62 # DW_AT_encoding
127 .byte 11 # DW_FORM_data1
128 .byte 11 # DW_AT_byte_size
129 .byte 11 # DW_FORM_data1
130 .byte 0 # EOM(1)
131 .byte 0 # EOM(2)
132 .byte 5 # Abbreviation Code
133 .byte 16 # DW_TAG_reference_type
134 .byte 0 # DW_CHILDREN_no
135 .byte 73 # DW_AT_type
136 .byte 19 # DW_FORM_ref4
137 .byte 0 # EOM(1)
138 .byte 0 # EOM(2)
139 .byte 6 # Abbreviation Code
140 .byte 19 # DW_TAG_structure_type
141 .byte 1 # DW_CHILDREN_yes
142 .byte 54 # DW_AT_calling_convention
143 .byte 11 # DW_FORM_data1
144 .byte 3 # DW_AT_name
145 .byte 37 # DW_FORM_strx1
146 .byte 11 # DW_AT_byte_size
147 .byte 11 # DW_FORM_data1
148 .byte 58 # DW_AT_decl_file
149 .byte 11 # DW_FORM_data1
150 .byte 59 # DW_AT_decl_line
151 .byte 11 # DW_FORM_data1
152 .byte 0 # EOM(1)
153 .byte 0 # EOM(2)
154 .byte 7 # Abbreviation Code
155 .byte 13 # DW_TAG_member
156 .byte 0 # DW_CHILDREN_no
157 .byte 3 # DW_AT_name
158 .byte 37 # DW_FORM_strx1
159 .byte 73 # DW_AT_type
160 .byte 19 # DW_FORM_ref4
161 .byte 58 # DW_AT_decl_file
162 .byte 11 # DW_FORM_data1
163 .byte 59 # DW_AT_decl_line
164 .byte 11 # DW_FORM_data1
165 .byte 56 # DW_AT_data_member_location
166 .byte 11 # DW_FORM_data1
167 .byte 0 # EOM(1)
168 .byte 0 # EOM(2)
169 .byte 8 # Abbreviation Code
170 .byte 46 # DW_TAG_subprogram
171 .byte 1 # DW_CHILDREN_yes
172 .byte 17 # DW_AT_low_pc
173 .byte 27 # DW_FORM_addrx
174 .byte 18 # DW_AT_high_pc
175 .byte 6 # DW_FORM_data4
176 .byte 64 # DW_AT_frame_base
177 .byte 24 # DW_FORM_exprloc
178 .byte 122 # DW_AT_call_all_calls
179 .byte 25 # DW_FORM_flag_present
180 .byte 110 # DW_AT_linkage_name
181 .byte 37 # DW_FORM_strx1
182 .byte 3 # DW_AT_name
183 .byte 37 # DW_FORM_strx1
184 .byte 58 # DW_AT_decl_file
185 .byte 11 # DW_FORM_data1
186 .byte 59 # DW_AT_decl_line
187 .byte 11 # DW_FORM_data1
188 .byte 73 # DW_AT_type
189 .byte 19 # DW_FORM_ref4
190 .byte 63 # DW_AT_external
191 .byte 25 # DW_FORM_flag_present
192 .byte 0 # EOM(1)
193 .byte 0 # EOM(2)
194 .byte 9 # Abbreviation Code
195 .byte 5 # DW_TAG_formal_parameter
196 .byte 0 # DW_CHILDREN_no
197 .byte 2 # DW_AT_location
198 .byte 24 # DW_FORM_exprloc
199 .byte 3 # DW_AT_name
200 .byte 37 # DW_FORM_strx1
201 .byte 58 # DW_AT_decl_file
202 .byte 11 # DW_FORM_data1
203 .byte 59 # DW_AT_decl_line
204 .byte 11 # DW_FORM_data1
205 .byte 73 # DW_AT_type
206 .byte 19 # DW_FORM_ref4
207 .byte 0 # EOM(1)
208 .byte 0 # EOM(2)
209 .byte 10 # Abbreviation Code
210 .byte 52 # DW_TAG_variable
211 .byte 0 # DW_CHILDREN_no
212 .byte 2 # DW_AT_location
213 .byte 34 # DW_FORM_loclistx
214 .byte 3 # DW_AT_name
215 .byte 37 # DW_FORM_strx1
216 .byte 58 # DW_AT_decl_file
217 .byte 11 # DW_FORM_data1
218 .byte 59 # DW_AT_decl_line
219 .byte 11 # DW_FORM_data1
220 .byte 73 # DW_AT_type
221 .byte 19 # DW_FORM_ref4
222 .byte 0 # EOM(1)
223 .byte 0 # EOM(2)
224 .byte 11 # Abbreviation Code
225 .byte 29 # DW_TAG_inlined_subroutine
226 .byte 0 # DW_CHILDREN_no
227 .byte 49 # DW_AT_abstract_origin
228 .byte 19 # DW_FORM_ref4
229 .byte 17 # DW_AT_low_pc
230 .byte 27 # DW_FORM_addrx
231 .byte 18 # DW_AT_high_pc
232 .byte 6 # DW_FORM_data4
233 .byte 88 # DW_AT_call_file
234 .byte 11 # DW_FORM_data1
235 .byte 89 # DW_AT_call_line
236 .byte 11 # DW_FORM_data1
237 .byte 87 # DW_AT_call_column
238 .byte 11 # DW_FORM_data1
239 .byte 0 # EOM(1)
240 .byte 0 # EOM(2)
241 .byte 0 # EOM(3)
242 .section .debug_info,"",@progbits
243 .Lcu_begin0:
244 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
245 .Ldebug_info_start0:
246 .short 5 # DWARF version number
247 .byte 1 # DWARF Unit Type
248 .byte 8 # Address Size (in bytes)
249 .long .debug_abbrev # Offset Into Abbrev. Section
250 .byte 1 # Abbrev [1] 0xc:0x81 DW_TAG_compile_unit
251 .byte 0 # DW_AT_producer
252 .short 33 # DW_AT_language
253 .byte 1 # DW_AT_name
254 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
255 .long .Lline_table_start0 # DW_AT_stmt_list
256 .byte 2 # DW_AT_comp_dir
257 .byte 0 # DW_AT_low_pc
258 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
259 .long .Laddr_table_base0 # DW_AT_addr_base
260 .long .Lloclists_table_base0 # DW_AT_loclists_base
261 .byte 2 # Abbrev [2] 0x27:0x12 DW_TAG_subprogram
262 .byte 3 # DW_AT_linkage_name
263 .byte 4 # DW_AT_name
264 .byte 0 # DW_AT_decl_file
265 .byte 6 # DW_AT_decl_line
266 .long 57 # DW_AT_type
267 # DW_AT_inline
268 .byte 3 # Abbrev [3] 0x30:0x8 DW_TAG_formal_parameter
269 .byte 6 # DW_AT_name
270 .byte 0 # DW_AT_decl_file
271 .byte 6 # DW_AT_decl_line
272 .long 61 # DW_AT_type
273 .byte 0 # End Of Children Mark
274 .byte 4 # Abbrev [4] 0x39:0x4 DW_TAG_base_type
275 .byte 5 # DW_AT_name
276 .byte 5 # DW_AT_encoding
277 .byte 4 # DW_AT_byte_size
278 .byte 5 # Abbrev [5] 0x3d:0x5 DW_TAG_reference_type
279 .long 66 # DW_AT_type
280 .byte 6 # Abbrev [6] 0x42:0x19 DW_TAG_structure_type
281 .byte 5 # DW_AT_calling_convention
282 .byte 9 # DW_AT_name
283 .byte 8 # DW_AT_byte_size
284 .byte 0 # DW_AT_decl_file
285 .byte 1 # DW_AT_decl_line
286 .byte 7 # Abbrev [7] 0x48:0x9 DW_TAG_member
287 .byte 7 # DW_AT_name
288 .long 57 # DW_AT_type
289 .byte 0 # DW_AT_decl_file
290 .byte 2 # DW_AT_decl_line
291 .byte 0 # DW_AT_data_member_location
292 .byte 7 # Abbrev [7] 0x51:0x9 DW_TAG_member
293 .byte 8 # DW_AT_name
294 .long 57 # DW_AT_type
295 .byte 0 # DW_AT_decl_file
296 .byte 3 # DW_AT_decl_line
297 .byte 4 # DW_AT_data_member_location
298 .byte 0 # End Of Children Mark
299 .byte 8 # Abbrev [8] 0x5b:0x31 DW_TAG_subprogram
300 .byte 0 # DW_AT_low_pc
301 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
302 .byte 1 # DW_AT_frame_base
303 .byte 87
304 # DW_AT_call_all_calls
305 .byte 10 # DW_AT_linkage_name
306 .byte 11 # DW_AT_name
307 .byte 0 # DW_AT_decl_file
308 .byte 9 # DW_AT_decl_line
309 .long 57 # DW_AT_type
310 # DW_AT_external
311 .byte 9 # Abbrev [9] 0x6b:0xa DW_TAG_formal_parameter
312 .byte 1 # DW_AT_location
313 .byte 85
314 .byte 12 # DW_AT_name
315 .byte 0 # DW_AT_decl_file
316 .byte 9 # DW_AT_decl_line
317 .long 57 # DW_AT_type
318 .byte 10 # Abbrev [10] 0x75:0x9 DW_TAG_variable
319 .byte 0 # DW_AT_location
320 .byte 11 # DW_AT_name
321 .byte 0 # DW_AT_decl_file
322 .byte 10 # DW_AT_decl_line
323 .long 66 # DW_AT_type
324 .byte 11 # Abbrev [11] 0x7e:0xd DW_TAG_inlined_subroutine
325 .long 39 # DW_AT_abstract_origin
326 .byte 0 # DW_AT_low_pc
327 .long .Ltmp0-.Lfunc_begin0 # DW_AT_high_pc
328 .byte 0 # DW_AT_call_file
329 .byte 13 # DW_AT_call_line
330 .byte 10 # DW_AT_call_column
331 .byte 0 # End Of Children Mark
332 .byte 0 # End Of Children Mark
333 .Ldebug_info_end0:
334 .section .debug_str_offsets,"",@progbits
335 .long 56 # Length of String Offsets Set
336 .short 5
337 .short 0
338 .Lstr_offsets_base0:
339 .section .debug_str,"MS",@progbits,1
340 .Linfo_string0:
341 .asciz "clang version 18.0.0 (git@github.com:llvm/llvm-project.git 37d6c1cc7d4dd3a8a47ba62254bc88521bd50d66)" # string offset=0
342 .Linfo_string1:
343 .asciz "helper.cpp" # string offset=101
344 .Linfo_string2:
345 .asciz "/dwarf4CrossCULocList" # string offset=112
346 .Linfo_string3:
347 .asciz "_ZL6helperR4Foo1" # string offset=171
348 .Linfo_string4:
349 .asciz "helper" # string offset=188
350 .Linfo_string5:
351 .asciz "int" # string offset=195
352 .Linfo_string6:
353 .asciz "f" # string offset=199
354 .Linfo_string7:
355 .asciz "x" # string offset=201
356 .Linfo_string8:
357 .asciz "y" # string offset=203
358 .Linfo_string9:
359 .asciz "Foo1" # string offset=205
360 .Linfo_string10:
361 .asciz "_Z3fooi" # string offset=210
362 .Linfo_string11:
363 .asciz "foo" # string offset=218
364 .Linfo_string12:
365 .asciz "i" # string offset=222
366 .section .debug_str_offsets,"",@progbits
367 .long .Linfo_string0
368 .long .Linfo_string1
369 .long .Linfo_string2
370 .long .Linfo_string3
371 .long .Linfo_string4
372 .long .Linfo_string5
373 .long .Linfo_string6
374 .long .Linfo_string7
375 .long .Linfo_string8
376 .long .Linfo_string9
377 .long .Linfo_string10
378 .long .Linfo_string11
379 .long .Linfo_string12
380 .section .debug_addr,"",@progbits
381 .long .Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution
382 .Ldebug_addr_start0:
383 .short 5 # DWARF version number
384 .byte 8 # Address size
385 .byte 0 # Segment selector size
386 .Laddr_table_base0:
387 .quad .Lfunc_begin0
388 .Ldebug_addr_end0:
389 .ident "clang version 18.0.0 (git@github.com:llvm/llvm-project.git 37d6c1cc7d4dd3a8a47ba62254bc88521bd50d66)"
390 .section ".note.GNU-stack","",@progbits
391 .addrsig
392 .section .debug_line,"",@progbits
393 .Lline_table_start0: