Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / Inputs / dwarf5-df-call-site-change-low-pc-helper.s
blobfd63c7cf33e61bd89a91164ec9ad781f693dde43
1 # clang++ -O2 -g -gdwarf-4 -gsplit-dwarf
2 # int z = 0;
3 # int d = 0;
4 # int helper(int z_, int d_) {
5 # z += z_;
6 # d += d_;
7 # return z * d;
8 # }
9 .text
10 .file "helper.cpp"
11 .file 0 "." "helper.cpp" md5 0xb012cefec76132f29ac48b29c7580352
12 .globl _Z6helperii # -- Begin function _Z6helperii
13 .p2align 4, 0x90
14 .type _Z6helperii,@function
15 _Z6helperii: # @_Z6helperii
16 .Lfunc_begin0:
17 .loc 0 3 0 # helper.cpp:3:0
18 .cfi_startproc
19 # %bb.0: # %entry
20 #DEBUG_VALUE: helper:z_ <- $edi
21 #DEBUG_VALUE: helper:d_ <- $esi
22 movl %esi, %eax
23 .Ltmp0:
24 .loc 0 4 4 prologue_end # helper.cpp:4:4
25 addl z(%rip), %edi
26 .Ltmp1:
27 #DEBUG_VALUE: helper:z_ <- [DW_OP_LLVM_entry_value 1] $edi
28 .loc 0 5 4 # helper.cpp:5:4
29 addl d(%rip), %eax
30 .loc 0 4 4 # helper.cpp:4:4
31 movl %edi, z(%rip)
32 .loc 0 5 4 # helper.cpp:5:4
33 movl %eax, d(%rip)
34 .loc 0 6 11 # helper.cpp:6:11
35 imull %edi, %eax
36 .loc 0 6 2 is_stmt 0 # helper.cpp:6:2
37 retq
38 .Ltmp2:
39 .Lfunc_end0:
40 .size _Z6helperii, .Lfunc_end0-_Z6helperii
41 .cfi_endproc
42 # -- End function
43 .type z,@object # @z
44 .bss
45 .globl z
46 .p2align 2, 0x0
48 .long 0 # 0x0
49 .size z, 4
51 .type d,@object # @d
52 .globl d
53 .p2align 2, 0x0
55 .long 0 # 0x0
56 .size d, 4
58 .section .debug_loclists.dwo,"e",@progbits
59 .long .Ldebug_list_header_end0-.Ldebug_list_header_start0 # Length
60 .Ldebug_list_header_start0:
61 .short 5 # Version
62 .byte 8 # Address size
63 .byte 0 # Segment selector size
64 .long 1 # Offset entry count
65 .Lloclists_table_base0:
66 .long .Ldebug_loc0-.Lloclists_table_base0
67 .Ldebug_loc0:
68 .byte 1 # DW_LLE_base_addressx
69 .byte 2 # base address index
70 .byte 4 # DW_LLE_offset_pair
71 .uleb128 .Lfunc_begin0-.Lfunc_begin0 # starting offset
72 .uleb128 .Ltmp1-.Lfunc_begin0 # ending offset
73 .byte 1 # Loc expr size
74 .byte 85 # super-register DW_OP_reg5
75 .byte 4 # DW_LLE_offset_pair
76 .uleb128 .Ltmp1-.Lfunc_begin0 # starting offset
77 .uleb128 .Lfunc_end0-.Lfunc_begin0 # ending offset
78 .byte 4 # Loc expr size
79 .byte 163 # DW_OP_entry_value
80 .byte 1 # 1
81 .byte 85 # super-register DW_OP_reg5
82 .byte 159 # DW_OP_stack_value
83 .byte 0 # DW_LLE_end_of_list
84 .Ldebug_list_header_end0:
85 .section .debug_abbrev,"",@progbits
86 .byte 1 # Abbreviation Code
87 .byte 74 # DW_TAG_skeleton_unit
88 .byte 0 # DW_CHILDREN_no
89 .byte 16 # DW_AT_stmt_list
90 .byte 23 # DW_FORM_sec_offset
91 .byte 114 # DW_AT_str_offsets_base
92 .byte 23 # DW_FORM_sec_offset
93 .byte 27 # DW_AT_comp_dir
94 .byte 37 # DW_FORM_strx1
95 .ascii "\264B" # DW_AT_GNU_pubnames
96 .byte 25 # DW_FORM_flag_present
97 .byte 118 # DW_AT_dwo_name
98 .byte 37 # DW_FORM_strx1
99 .byte 17 # DW_AT_low_pc
100 .byte 27 # DW_FORM_addrx
101 .byte 18 # DW_AT_high_pc
102 .byte 6 # DW_FORM_data4
103 .byte 115 # DW_AT_addr_base
104 .byte 23 # DW_FORM_sec_offset
105 .byte 0 # EOM(1)
106 .byte 0 # EOM(2)
107 .byte 0 # EOM(3)
108 .section .debug_info,"",@progbits
109 .Lcu_begin0:
110 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
111 .Ldebug_info_start0:
112 .short 5 # DWARF version number
113 .byte 4 # DWARF Unit Type
114 .byte 8 # Address Size (in bytes)
115 .long .debug_abbrev # Offset Into Abbrev. Section
116 .quad 6512974040646495267
117 .byte 1 # Abbrev [1] 0x14:0x14 DW_TAG_skeleton_unit
118 .long .Lline_table_start0 # DW_AT_stmt_list
119 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
120 .byte 0 # DW_AT_comp_dir
121 # DW_AT_GNU_pubnames
122 .byte 1 # DW_AT_dwo_name
123 .byte 2 # DW_AT_low_pc
124 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
125 .long .Laddr_table_base0 # DW_AT_addr_base
126 .Ldebug_info_end0:
127 .section .debug_str_offsets,"",@progbits
128 .long 12 # Length of String Offsets Set
129 .short 5
130 .short 0
131 .Lstr_offsets_base0:
132 .section .debug_str,"MS",@progbits,1
133 .Lskel_string0:
134 .asciz "." # string offset=0
135 .Lskel_string1:
136 .asciz "helper.dwo" # string offset=47
137 .section .debug_str_offsets,"",@progbits
138 .long .Lskel_string0
139 .long .Lskel_string1
140 .section .debug_str_offsets.dwo,"e",@progbits
141 .long 44 # Length of String Offsets Set
142 .short 5
143 .short 0
144 .section .debug_str.dwo,"eMS",@progbits,1
145 .Linfo_string0:
146 .asciz "z" # string offset=0
147 .Linfo_string1:
148 .asciz "int" # string offset=2
149 .Linfo_string2:
150 .asciz "d" # string offset=6
151 .Linfo_string3:
152 .asciz "_Z6helperii" # string offset=8
153 .Linfo_string4:
154 .asciz "helper" # string offset=20
155 .Linfo_string5:
156 .asciz "z_" # string offset=27
157 .Linfo_string6:
158 .asciz "d_" # string offset=30
159 .Linfo_string7:
160 .asciz "clang version 18.0.0 (git@github.com:llvm/llvm-project.git 3a8db0f4bfb57348f49d9603119fa157114bbf8e)" # string offset=33
161 .Linfo_string8:
162 .asciz "helper.cpp" # string offset=134
163 .Linfo_string9:
164 .asciz "helper.dwo" # string offset=145
165 .section .debug_str_offsets.dwo,"e",@progbits
166 .long 0
167 .long 2
168 .long 6
169 .long 8
170 .long 20
171 .long 27
172 .long 30
173 .long 33
174 .long 134
175 .long 145
176 .section .debug_info.dwo,"e",@progbits
177 .long .Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit
178 .Ldebug_info_dwo_start0:
179 .short 5 # DWARF version number
180 .byte 5 # DWARF Unit Type
181 .byte 8 # Address Size (in bytes)
182 .long 0 # Offset Into Abbrev. Section
183 .quad 6512974040646495267
184 .byte 1 # Abbrev [1] 0x14:0x45 DW_TAG_compile_unit
185 .byte 7 # DW_AT_producer
186 .short 33 # DW_AT_language
187 .byte 8 # DW_AT_name
188 .byte 9 # DW_AT_dwo_name
189 .byte 2 # Abbrev [2] 0x1a:0xb DW_TAG_variable
190 .byte 0 # DW_AT_name
191 .long 37 # DW_AT_type
192 # DW_AT_external
193 .byte 0 # DW_AT_decl_file
194 .byte 1 # DW_AT_decl_line
195 .byte 2 # DW_AT_location
196 .byte 161
197 .byte 0
198 .byte 3 # Abbrev [3] 0x25:0x4 DW_TAG_base_type
199 .byte 1 # DW_AT_name
200 .byte 5 # DW_AT_encoding
201 .byte 4 # DW_AT_byte_size
202 .byte 2 # Abbrev [2] 0x29:0xb DW_TAG_variable
203 .byte 2 # DW_AT_name
204 .long 37 # DW_AT_type
205 # DW_AT_external
206 .byte 0 # DW_AT_decl_file
207 .byte 2 # DW_AT_decl_line
208 .byte 2 # DW_AT_location
209 .byte 161
210 .byte 1
211 .byte 4 # Abbrev [4] 0x34:0x24 DW_TAG_subprogram
212 .byte 2 # DW_AT_low_pc
213 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
214 .byte 1 # DW_AT_frame_base
215 .byte 87
216 # DW_AT_call_all_calls
217 .byte 3 # DW_AT_linkage_name
218 .byte 4 # DW_AT_name
219 .byte 0 # DW_AT_decl_file
220 .byte 3 # DW_AT_decl_line
221 .long 37 # DW_AT_type
222 # DW_AT_external
223 .byte 5 # Abbrev [5] 0x44:0x9 DW_TAG_formal_parameter
224 .byte 0 # DW_AT_location
225 .byte 5 # DW_AT_name
226 .byte 0 # DW_AT_decl_file
227 .byte 3 # DW_AT_decl_line
228 .long 37 # DW_AT_type
229 .byte 6 # Abbrev [6] 0x4d:0xa DW_TAG_formal_parameter
230 .byte 1 # DW_AT_location
231 .byte 84
232 .byte 6 # DW_AT_name
233 .byte 0 # DW_AT_decl_file
234 .byte 3 # DW_AT_decl_line
235 .long 37 # DW_AT_type
236 .byte 0 # End Of Children Mark
237 .byte 0 # End Of Children Mark
238 .Ldebug_info_dwo_end0:
239 .section .debug_abbrev.dwo,"e",@progbits
240 .byte 1 # Abbreviation Code
241 .byte 17 # DW_TAG_compile_unit
242 .byte 1 # DW_CHILDREN_yes
243 .byte 37 # DW_AT_producer
244 .byte 37 # DW_FORM_strx1
245 .byte 19 # DW_AT_language
246 .byte 5 # DW_FORM_data2
247 .byte 3 # DW_AT_name
248 .byte 37 # DW_FORM_strx1
249 .byte 118 # DW_AT_dwo_name
250 .byte 37 # DW_FORM_strx1
251 .byte 0 # EOM(1)
252 .byte 0 # EOM(2)
253 .byte 2 # Abbreviation Code
254 .byte 52 # DW_TAG_variable
255 .byte 0 # DW_CHILDREN_no
256 .byte 3 # DW_AT_name
257 .byte 37 # DW_FORM_strx1
258 .byte 73 # DW_AT_type
259 .byte 19 # DW_FORM_ref4
260 .byte 63 # DW_AT_external
261 .byte 25 # DW_FORM_flag_present
262 .byte 58 # DW_AT_decl_file
263 .byte 11 # DW_FORM_data1
264 .byte 59 # DW_AT_decl_line
265 .byte 11 # DW_FORM_data1
266 .byte 2 # DW_AT_location
267 .byte 24 # DW_FORM_exprloc
268 .byte 0 # EOM(1)
269 .byte 0 # EOM(2)
270 .byte 3 # Abbreviation Code
271 .byte 36 # DW_TAG_base_type
272 .byte 0 # DW_CHILDREN_no
273 .byte 3 # DW_AT_name
274 .byte 37 # DW_FORM_strx1
275 .byte 62 # DW_AT_encoding
276 .byte 11 # DW_FORM_data1
277 .byte 11 # DW_AT_byte_size
278 .byte 11 # DW_FORM_data1
279 .byte 0 # EOM(1)
280 .byte 0 # EOM(2)
281 .byte 4 # Abbreviation Code
282 .byte 46 # DW_TAG_subprogram
283 .byte 1 # DW_CHILDREN_yes
284 .byte 17 # DW_AT_low_pc
285 .byte 27 # DW_FORM_addrx
286 .byte 18 # DW_AT_high_pc
287 .byte 6 # DW_FORM_data4
288 .byte 64 # DW_AT_frame_base
289 .byte 24 # DW_FORM_exprloc
290 .byte 122 # DW_AT_call_all_calls
291 .byte 25 # DW_FORM_flag_present
292 .byte 110 # DW_AT_linkage_name
293 .byte 37 # DW_FORM_strx1
294 .byte 3 # DW_AT_name
295 .byte 37 # DW_FORM_strx1
296 .byte 58 # DW_AT_decl_file
297 .byte 11 # DW_FORM_data1
298 .byte 59 # DW_AT_decl_line
299 .byte 11 # DW_FORM_data1
300 .byte 73 # DW_AT_type
301 .byte 19 # DW_FORM_ref4
302 .byte 63 # DW_AT_external
303 .byte 25 # DW_FORM_flag_present
304 .byte 0 # EOM(1)
305 .byte 0 # EOM(2)
306 .byte 5 # Abbreviation Code
307 .byte 5 # DW_TAG_formal_parameter
308 .byte 0 # DW_CHILDREN_no
309 .byte 2 # DW_AT_location
310 .byte 34 # DW_FORM_loclistx
311 .byte 3 # DW_AT_name
312 .byte 37 # DW_FORM_strx1
313 .byte 58 # DW_AT_decl_file
314 .byte 11 # DW_FORM_data1
315 .byte 59 # DW_AT_decl_line
316 .byte 11 # DW_FORM_data1
317 .byte 73 # DW_AT_type
318 .byte 19 # DW_FORM_ref4
319 .byte 0 # EOM(1)
320 .byte 0 # EOM(2)
321 .byte 6 # Abbreviation Code
322 .byte 5 # DW_TAG_formal_parameter
323 .byte 0 # DW_CHILDREN_no
324 .byte 2 # DW_AT_location
325 .byte 24 # DW_FORM_exprloc
326 .byte 3 # DW_AT_name
327 .byte 37 # DW_FORM_strx1
328 .byte 58 # DW_AT_decl_file
329 .byte 11 # DW_FORM_data1
330 .byte 59 # DW_AT_decl_line
331 .byte 11 # DW_FORM_data1
332 .byte 73 # DW_AT_type
333 .byte 19 # DW_FORM_ref4
334 .byte 0 # EOM(1)
335 .byte 0 # EOM(2)
336 .byte 0 # EOM(3)
337 .section .debug_addr,"",@progbits
338 .long .Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution
339 .Ldebug_addr_start0:
340 .short 5 # DWARF version number
341 .byte 8 # Address size
342 .byte 0 # Segment selector size
343 .Laddr_table_base0:
344 .quad z
345 .quad d
346 .quad .Lfunc_begin0
347 .Ldebug_addr_end0:
348 .section .debug_gnu_pubnames,"",@progbits
349 .long .LpubNames_end0-.LpubNames_start0 # Length of Public Names Info
350 .LpubNames_start0:
351 .short 2 # DWARF Version
352 .long .Lcu_begin0 # Offset of Compilation Unit Info
353 .long 40 # Compilation Unit Length
354 .long 26 # DIE offset
355 .byte 32 # Attributes: VARIABLE, EXTERNAL
356 .asciz "z" # External Name
357 .long 41 # DIE offset
358 .byte 32 # Attributes: VARIABLE, EXTERNAL
359 .asciz "d" # External Name
360 .long 52 # DIE offset
361 .byte 48 # Attributes: FUNCTION, EXTERNAL
362 .asciz "helper" # External Name
363 .long 0 # End Mark
364 .LpubNames_end0:
365 .section .debug_gnu_pubtypes,"",@progbits
366 .long .LpubTypes_end0-.LpubTypes_start0 # Length of Public Types Info
367 .LpubTypes_start0:
368 .short 2 # DWARF Version
369 .long .Lcu_begin0 # Offset of Compilation Unit Info
370 .long 40 # Compilation Unit Length
371 .long 37 # DIE offset
372 .byte 144 # Attributes: TYPE, STATIC
373 .asciz "int" # External Name
374 .long 0 # End Mark
375 .LpubTypes_end0:
376 .ident "clang version 18.0.0 (git@github.com:llvm/llvm-project.git 3a8db0f4bfb57348f49d9603119fa157114bbf8e)"
377 .section ".note.GNU-stack","",@progbits
378 .addrsig
379 .section .debug_line,"",@progbits
380 .Lline_table_start0: