Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / Inputs / dwarf5-df-dualcu-loclist-helper.s
blob389d83c692ba86311c78be1e1b8eb4b61005c0b2
1 # clang++ -g -gdwarf-5 -emit-llvm -S helper.cpp
2 # llc -O2 -mtriple=x86_64-unknown-linux-gnu helper.ll
3 # int z = 0;
4 # int d = 0;
6 # int helper(int z_, int d_) {
7 # z += z_;
8 # d += d_;
9 # return z * d;
10 # }
12 .text
13 .file "helper.cpp"
14 .file 0 "." "helper.cpp" md5 0xe635924a35b65444173d0c76a54b866f
15 .globl _Z6helperii # -- Begin function _Z6helperii
16 .p2align 4, 0x90
17 .type _Z6helperii,@function
18 _Z6helperii: # @_Z6helperii
19 .Lfunc_begin0:
20 .loc 0 4 0 # helper.cpp:4:0
21 .cfi_startproc
22 # %bb.0: # %entry
23 #DEBUG_VALUE: helper:z_ <- $edi
24 #DEBUG_VALUE: helper:d_ <- $esi
25 movl %esi, %eax
26 .Ltmp0:
27 .loc 0 5 4 prologue_end # helper.cpp:5:4
28 addl z(%rip), %edi
29 .Ltmp1:
30 #DEBUG_VALUE: helper:z_ <- [DW_OP_LLVM_entry_value 1] $edi
31 .loc 0 6 4 # helper.cpp:6:4
32 addl d(%rip), %eax
33 .loc 0 5 4 # helper.cpp:5:4
34 movl %edi, z(%rip)
35 .loc 0 6 4 # helper.cpp:6:4
36 movl %eax, d(%rip)
37 .loc 0 7 11 # helper.cpp:7:11
38 imull %edi, %eax
39 .loc 0 7 2 is_stmt 0 # helper.cpp:7:2
40 retq
41 .Ltmp2:
42 .Lfunc_end0:
43 .size _Z6helperii, .Lfunc_end0-_Z6helperii
44 .cfi_endproc
45 # -- End function
46 .type z,@object # @z
47 .bss
48 .globl z
49 .p2align 2
51 .long 0 # 0x0
52 .size z, 4
54 .type d,@object # @d
55 .globl d
56 .p2align 2
58 .long 0 # 0x0
59 .size d, 4
61 .section .debug_loclists.dwo,"e",@progbits
62 .long .Ldebug_list_header_end0-.Ldebug_list_header_start0 # Length
63 .Ldebug_list_header_start0:
64 .short 5 # Version
65 .byte 8 # Address size
66 .byte 0 # Segment selector size
67 .long 1 # Offset entry count
68 .Lloclists_table_base0:
69 .long .Ldebug_loc0-.Lloclists_table_base0
70 .Ldebug_loc0:
71 .byte 1 # DW_LLE_base_addressx
72 .byte 2 # base address index
73 .byte 4 # DW_LLE_offset_pair
74 .uleb128 .Lfunc_begin0-.Lfunc_begin0 # starting offset
75 .uleb128 .Ltmp1-.Lfunc_begin0 # ending offset
76 .byte 1 # Loc expr size
77 .byte 85 # super-register DW_OP_reg5
78 .byte 4 # DW_LLE_offset_pair
79 .uleb128 .Ltmp1-.Lfunc_begin0 # starting offset
80 .uleb128 .Lfunc_end0-.Lfunc_begin0 # ending offset
81 .byte 4 # Loc expr size
82 .byte 163 # DW_OP_entry_value
83 .byte 1 # 1
84 .byte 85 # super-register DW_OP_reg5
85 .byte 159 # DW_OP_stack_value
86 .byte 0 # DW_LLE_end_of_list
87 .Ldebug_list_header_end0:
88 .section .debug_abbrev,"",@progbits
89 .byte 1 # Abbreviation Code
90 .byte 74 # DW_TAG_skeleton_unit
91 .byte 0 # DW_CHILDREN_no
92 .byte 16 # DW_AT_stmt_list
93 .byte 23 # DW_FORM_sec_offset
94 .byte 114 # DW_AT_str_offsets_base
95 .byte 23 # DW_FORM_sec_offset
96 .byte 27 # DW_AT_comp_dir
97 .byte 37 # DW_FORM_strx1
98 .byte 118 # DW_AT_dwo_name
99 .byte 37 # DW_FORM_strx1
100 .byte 17 # DW_AT_low_pc
101 .byte 27 # DW_FORM_addrx
102 .byte 18 # DW_AT_high_pc
103 .byte 6 # DW_FORM_data4
104 .byte 115 # DW_AT_addr_base
105 .byte 23 # DW_FORM_sec_offset
106 .byte 0 # EOM(1)
107 .byte 0 # EOM(2)
108 .byte 0 # EOM(3)
109 .section .debug_info,"",@progbits
110 .Lcu_begin0:
111 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
112 .Ldebug_info_start0:
113 .short 5 # DWARF version number
114 .byte 4 # DWARF Unit Type
115 .byte 8 # Address Size (in bytes)
116 .long .debug_abbrev # Offset Into Abbrev. Section
117 .quad 9211989493039430794
118 .byte 1 # Abbrev [1] 0x14:0x14 DW_TAG_skeleton_unit
119 .long .Lline_table_start0 # DW_AT_stmt_list
120 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
121 .byte 0 # DW_AT_comp_dir
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=2
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 15.0.0" # string offset=33
161 .Linfo_string8:
162 .asciz "helper.cpp" # string offset=54
163 .Linfo_string9:
164 .asciz "helper.dwo" # string offset=65
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 54
175 .long 65
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 9211989493039430794
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 4 # 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 4 # 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 4 # 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 .ident "clang version 15.0.0"
349 .section ".note.GNU-stack","",@progbits
350 .section .debug_line,"",@progbits
351 .Lline_table_start0: