Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / Inputs / dwarf4-df-dualcu-main.s
blob0f79e7ec18f701ac6d46a49021eb8e5c35fb6a2f
1 # clang++ -g -gdwarf-4 -emit-llvm -S main.cpp
2 # llc -O0 -mtriple=x86_64-unknown-linux-gnu main.ll
3 # void use(int * x, int * y) {
4 # *x += 4;
5 # *y -= 2;
6 # }
8 # int helper(int z_, int d_);
9 # int x = 0;
10 # int y = 1;
11 # int main(int argc, char *argv[]) {
12 # x = argc;
13 # y = argc + 3;
14 # use(&x, &y);
15 # return helper(x, y);
16 # }
18 .text
19 .file "main.cpp"
20 .file 1 "." "main.cpp"
21 .globl _Z3usePiS_ # -- Begin function _Z3usePiS_
22 .p2align 4, 0x90
23 .type _Z3usePiS_,@function
24 _Z3usePiS_: # @_Z3usePiS_
25 .Lfunc_begin0:
26 .loc 1 1 0 # main.cpp:1:0
27 .cfi_startproc
28 # %bb.0: # %entry
29 pushq %rbp
30 .cfi_def_cfa_offset 16
31 .cfi_offset %rbp, -16
32 movq %rsp, %rbp
33 .cfi_def_cfa_register %rbp
34 movq %rdi, -8(%rbp)
35 movq %rsi, -16(%rbp)
36 .Ltmp0:
37 .loc 1 2 2 prologue_end # main.cpp:2:2
38 movq -8(%rbp), %rax
39 .loc 1 2 4 is_stmt 0 # main.cpp:2:4
40 movl (%rax), %ecx
41 addl $4, %ecx
42 movl %ecx, (%rax)
43 .loc 1 3 2 is_stmt 1 # main.cpp:3:2
44 movq -16(%rbp), %rax
45 .loc 1 3 4 is_stmt 0 # main.cpp:3:4
46 movl (%rax), %ecx
47 subl $2, %ecx
48 movl %ecx, (%rax)
49 .loc 1 4 1 is_stmt 1 # main.cpp:4:1
50 popq %rbp
51 .cfi_def_cfa %rsp, 8
52 retq
53 .Ltmp1:
54 .Lfunc_end0:
55 .size _Z3usePiS_, .Lfunc_end0-_Z3usePiS_
56 .cfi_endproc
57 # -- End function
58 .globl main # -- Begin function main
59 .p2align 4, 0x90
60 .type main,@function
61 main: # @main
62 .Lfunc_begin1:
63 .loc 1 9 0 # main.cpp:9:0
64 .cfi_startproc
65 # %bb.0: # %entry
66 pushq %rbp
67 .cfi_def_cfa_offset 16
68 .cfi_offset %rbp, -16
69 movq %rsp, %rbp
70 .cfi_def_cfa_register %rbp
71 subq $16, %rsp
72 movl $0, -4(%rbp)
73 movl %edi, -8(%rbp)
74 movq %rsi, -16(%rbp)
75 .Ltmp2:
76 .loc 1 10 8 prologue_end # main.cpp:10:8
77 movl -8(%rbp), %eax
78 .loc 1 10 6 is_stmt 0 # main.cpp:10:6
79 movl %eax, x
80 .loc 1 11 8 is_stmt 1 # main.cpp:11:8
81 movl -8(%rbp), %eax
82 .loc 1 11 13 is_stmt 0 # main.cpp:11:13
83 addl $3, %eax
84 .loc 1 11 6 # main.cpp:11:6
85 movl %eax, y
86 .loc 1 12 4 is_stmt 1 # main.cpp:12:4
87 movabsq $x, %rdi
88 movabsq $y, %rsi
89 callq _Z3usePiS_
90 .loc 1 13 18 # main.cpp:13:18
91 movl x, %edi
92 .loc 1 13 21 is_stmt 0 # main.cpp:13:21
93 movl y, %esi
94 .loc 1 13 11 # main.cpp:13:11
95 callq _Z6helperii
96 .loc 1 13 4 # main.cpp:13:4
97 addq $16, %rsp
98 popq %rbp
99 .cfi_def_cfa %rsp, 8
100 retq
101 .Ltmp3:
102 .Lfunc_end1:
103 .size main, .Lfunc_end1-main
104 .cfi_endproc
105 # -- End function
106 .type x,@object # @x
107 .bss
108 .globl x
109 .p2align 2
111 .long 0 # 0x0
112 .size x, 4
114 .type y,@object # @y
115 .data
116 .globl y
117 .p2align 2
119 .long 1 # 0x1
120 .size y, 4
122 .section .debug_abbrev,"",@progbits
123 .byte 1 # Abbreviation Code
124 .byte 17 # DW_TAG_compile_unit
125 .byte 0 # DW_CHILDREN_no
126 .byte 16 # DW_AT_stmt_list
127 .byte 23 # DW_FORM_sec_offset
128 .byte 27 # DW_AT_comp_dir
129 .byte 14 # DW_FORM_strp
130 .ascii "\260B" # DW_AT_GNU_dwo_name
131 .byte 14 # DW_FORM_strp
132 .ascii "\261B" # DW_AT_GNU_dwo_id
133 .byte 7 # DW_FORM_data8
134 .byte 17 # DW_AT_low_pc
135 .byte 1 # DW_FORM_addr
136 .byte 18 # DW_AT_high_pc
137 .byte 6 # DW_FORM_data4
138 .ascii "\263B" # DW_AT_GNU_addr_base
139 .byte 23 # DW_FORM_sec_offset
140 .byte 0 # EOM(1)
141 .byte 0 # EOM(2)
142 .byte 0 # EOM(3)
143 .section .debug_info,"",@progbits
144 .Lcu_begin0:
145 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
146 .Ldebug_info_start0:
147 .short 4 # DWARF version number
148 .long .debug_abbrev # Offset Into Abbrev. Section
149 .byte 8 # Address Size (in bytes)
150 .byte 1 # Abbrev [1] 0xb:0x25 DW_TAG_compile_unit
151 .long .Lline_table_start0 # DW_AT_stmt_list
152 .long .Lskel_string0 # DW_AT_comp_dir
153 .long .Lskel_string1 # DW_AT_GNU_dwo_name
154 .quad 4587139501222431648 # DW_AT_GNU_dwo_id
155 .quad .Lfunc_begin0 # DW_AT_low_pc
156 .long .Lfunc_end1-.Lfunc_begin0 # DW_AT_high_pc
157 .long .Laddr_table_base0 # DW_AT_GNU_addr_base
158 .Ldebug_info_end0:
159 .section .debug_str,"MS",@progbits,1
160 .Lskel_string0:
161 .asciz "." # string offset=0
162 .Lskel_string1:
163 .asciz "main.dwo" # string offset=2
164 .section .debug_str.dwo,"eMS",@progbits,1
165 .Linfo_string0:
166 .asciz "x" # string offset=0
167 .Linfo_string1:
168 .asciz "int" # string offset=2
169 .Linfo_string2:
170 .asciz "y" # string offset=6
171 .Linfo_string3:
172 .asciz "_Z3usePiS_" # string offset=8
173 .Linfo_string4:
174 .asciz "use" # string offset=19
175 .Linfo_string5:
176 .asciz "main" # string offset=23
177 .Linfo_string6:
178 .asciz "argc" # string offset=28
179 .Linfo_string7:
180 .asciz "argv" # string offset=33
181 .Linfo_string8:
182 .asciz "char" # string offset=38
183 .Linfo_string9:
184 .asciz "clang version 15.0.0" # string offset=43
185 .Linfo_string10:
186 .asciz "main.cpp" # string offset=64
187 .Linfo_string11:
188 .asciz "main.dwo" # string offset=73
189 .section .debug_str_offsets.dwo,"e",@progbits
190 .long 0
191 .long 2
192 .long 6
193 .long 8
194 .long 19
195 .long 23
196 .long 28
197 .long 33
198 .long 38
199 .long 43
200 .long 64
201 .long 73
202 .section .debug_info.dwo,"e",@progbits
203 .long .Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit
204 .Ldebug_info_dwo_start0:
205 .short 4 # DWARF version number
206 .long 0 # Offset Into Abbrev. Section
207 .byte 8 # Address Size (in bytes)
208 .byte 1 # Abbrev [1] 0xb:0x85 DW_TAG_compile_unit
209 .byte 9 # DW_AT_producer
210 .short 33 # DW_AT_language
211 .byte 10 # DW_AT_name
212 .byte 11 # DW_AT_GNU_dwo_name
213 .quad 4587139501222431648 # DW_AT_GNU_dwo_id
214 .byte 2 # Abbrev [2] 0x19:0xb DW_TAG_variable
215 .byte 0 # DW_AT_name
216 .long 36 # DW_AT_type
217 # DW_AT_external
218 .byte 1 # DW_AT_decl_file
219 .byte 7 # DW_AT_decl_line
220 .byte 2 # DW_AT_location
221 .byte 251
222 .byte 0
223 .byte 3 # Abbrev [3] 0x24:0x4 DW_TAG_base_type
224 .byte 1 # DW_AT_name
225 .byte 5 # DW_AT_encoding
226 .byte 4 # DW_AT_byte_size
227 .byte 2 # Abbrev [2] 0x28:0xb DW_TAG_variable
228 .byte 2 # DW_AT_name
229 .long 36 # DW_AT_type
230 # DW_AT_external
231 .byte 1 # DW_AT_decl_file
232 .byte 8 # DW_AT_decl_line
233 .byte 2 # DW_AT_location
234 .byte 251
235 .byte 1
236 .byte 4 # Abbrev [4] 0x33:0x23 DW_TAG_subprogram
237 .byte 2 # DW_AT_low_pc
238 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
239 .byte 1 # DW_AT_frame_base
240 .byte 86
241 .byte 3 # DW_AT_linkage_name
242 .byte 4 # DW_AT_name
243 .byte 1 # DW_AT_decl_file
244 .byte 1 # DW_AT_decl_line
245 # DW_AT_external
246 .byte 5 # Abbrev [5] 0x3f:0xb DW_TAG_formal_parameter
247 .byte 2 # DW_AT_location
248 .byte 145
249 .byte 120
250 .byte 0 # DW_AT_name
251 .byte 1 # DW_AT_decl_file
252 .byte 1 # DW_AT_decl_line
253 .long 124 # DW_AT_type
254 .byte 5 # Abbrev [5] 0x4a:0xb DW_TAG_formal_parameter
255 .byte 2 # DW_AT_location
256 .byte 145
257 .byte 112
258 .byte 2 # DW_AT_name
259 .byte 1 # DW_AT_decl_file
260 .byte 1 # DW_AT_decl_line
261 .long 124 # DW_AT_type
262 .byte 0 # End Of Children Mark
263 .byte 6 # Abbrev [6] 0x56:0x26 DW_TAG_subprogram
264 .byte 3 # DW_AT_low_pc
265 .long .Lfunc_end1-.Lfunc_begin1 # DW_AT_high_pc
266 .byte 1 # DW_AT_frame_base
267 .byte 86
268 .byte 5 # DW_AT_name
269 .byte 1 # DW_AT_decl_file
270 .byte 9 # DW_AT_decl_line
271 .long 36 # DW_AT_type
272 # DW_AT_external
273 .byte 5 # Abbrev [5] 0x65:0xb DW_TAG_formal_parameter
274 .byte 2 # DW_AT_location
275 .byte 145
276 .byte 120
277 .byte 6 # DW_AT_name
278 .byte 1 # DW_AT_decl_file
279 .byte 9 # DW_AT_decl_line
280 .long 36 # DW_AT_type
281 .byte 5 # Abbrev [5] 0x70:0xb DW_TAG_formal_parameter
282 .byte 2 # DW_AT_location
283 .byte 145
284 .byte 112
285 .byte 7 # DW_AT_name
286 .byte 1 # DW_AT_decl_file
287 .byte 9 # DW_AT_decl_line
288 .long 129 # DW_AT_type
289 .byte 0 # End Of Children Mark
290 .byte 7 # Abbrev [7] 0x7c:0x5 DW_TAG_pointer_type
291 .long 36 # DW_AT_type
292 .byte 7 # Abbrev [7] 0x81:0x5 DW_TAG_pointer_type
293 .long 134 # DW_AT_type
294 .byte 7 # Abbrev [7] 0x86:0x5 DW_TAG_pointer_type
295 .long 139 # DW_AT_type
296 .byte 3 # Abbrev [3] 0x8b:0x4 DW_TAG_base_type
297 .byte 8 # DW_AT_name
298 .byte 6 # DW_AT_encoding
299 .byte 1 # DW_AT_byte_size
300 .byte 0 # End Of Children Mark
301 .Ldebug_info_dwo_end0:
302 .section .debug_abbrev.dwo,"e",@progbits
303 .byte 1 # Abbreviation Code
304 .byte 17 # DW_TAG_compile_unit
305 .byte 1 # DW_CHILDREN_yes
306 .byte 37 # DW_AT_producer
307 .ascii "\202>" # DW_FORM_GNU_str_index
308 .byte 19 # DW_AT_language
309 .byte 5 # DW_FORM_data2
310 .byte 3 # DW_AT_name
311 .ascii "\202>" # DW_FORM_GNU_str_index
312 .ascii "\260B" # DW_AT_GNU_dwo_name
313 .ascii "\202>" # DW_FORM_GNU_str_index
314 .ascii "\261B" # DW_AT_GNU_dwo_id
315 .byte 7 # DW_FORM_data8
316 .byte 0 # EOM(1)
317 .byte 0 # EOM(2)
318 .byte 2 # Abbreviation Code
319 .byte 52 # DW_TAG_variable
320 .byte 0 # DW_CHILDREN_no
321 .byte 3 # DW_AT_name
322 .ascii "\202>" # DW_FORM_GNU_str_index
323 .byte 73 # DW_AT_type
324 .byte 19 # DW_FORM_ref4
325 .byte 63 # DW_AT_external
326 .byte 25 # DW_FORM_flag_present
327 .byte 58 # DW_AT_decl_file
328 .byte 11 # DW_FORM_data1
329 .byte 59 # DW_AT_decl_line
330 .byte 11 # DW_FORM_data1
331 .byte 2 # DW_AT_location
332 .byte 24 # DW_FORM_exprloc
333 .byte 0 # EOM(1)
334 .byte 0 # EOM(2)
335 .byte 3 # Abbreviation Code
336 .byte 36 # DW_TAG_base_type
337 .byte 0 # DW_CHILDREN_no
338 .byte 3 # DW_AT_name
339 .ascii "\202>" # DW_FORM_GNU_str_index
340 .byte 62 # DW_AT_encoding
341 .byte 11 # DW_FORM_data1
342 .byte 11 # DW_AT_byte_size
343 .byte 11 # DW_FORM_data1
344 .byte 0 # EOM(1)
345 .byte 0 # EOM(2)
346 .byte 4 # Abbreviation Code
347 .byte 46 # DW_TAG_subprogram
348 .byte 1 # DW_CHILDREN_yes
349 .byte 17 # DW_AT_low_pc
350 .ascii "\201>" # DW_FORM_GNU_addr_index
351 .byte 18 # DW_AT_high_pc
352 .byte 6 # DW_FORM_data4
353 .byte 64 # DW_AT_frame_base
354 .byte 24 # DW_FORM_exprloc
355 .byte 110 # DW_AT_linkage_name
356 .ascii "\202>" # DW_FORM_GNU_str_index
357 .byte 3 # DW_AT_name
358 .ascii "\202>" # DW_FORM_GNU_str_index
359 .byte 58 # DW_AT_decl_file
360 .byte 11 # DW_FORM_data1
361 .byte 59 # DW_AT_decl_line
362 .byte 11 # DW_FORM_data1
363 .byte 63 # DW_AT_external
364 .byte 25 # DW_FORM_flag_present
365 .byte 0 # EOM(1)
366 .byte 0 # EOM(2)
367 .byte 5 # Abbreviation Code
368 .byte 5 # DW_TAG_formal_parameter
369 .byte 0 # DW_CHILDREN_no
370 .byte 2 # DW_AT_location
371 .byte 24 # DW_FORM_exprloc
372 .byte 3 # DW_AT_name
373 .ascii "\202>" # DW_FORM_GNU_str_index
374 .byte 58 # DW_AT_decl_file
375 .byte 11 # DW_FORM_data1
376 .byte 59 # DW_AT_decl_line
377 .byte 11 # DW_FORM_data1
378 .byte 73 # DW_AT_type
379 .byte 19 # DW_FORM_ref4
380 .byte 0 # EOM(1)
381 .byte 0 # EOM(2)
382 .byte 6 # Abbreviation Code
383 .byte 46 # DW_TAG_subprogram
384 .byte 1 # DW_CHILDREN_yes
385 .byte 17 # DW_AT_low_pc
386 .ascii "\201>" # DW_FORM_GNU_addr_index
387 .byte 18 # DW_AT_high_pc
388 .byte 6 # DW_FORM_data4
389 .byte 64 # DW_AT_frame_base
390 .byte 24 # DW_FORM_exprloc
391 .byte 3 # DW_AT_name
392 .ascii "\202>" # DW_FORM_GNU_str_index
393 .byte 58 # DW_AT_decl_file
394 .byte 11 # DW_FORM_data1
395 .byte 59 # DW_AT_decl_line
396 .byte 11 # DW_FORM_data1
397 .byte 73 # DW_AT_type
398 .byte 19 # DW_FORM_ref4
399 .byte 63 # DW_AT_external
400 .byte 25 # DW_FORM_flag_present
401 .byte 0 # EOM(1)
402 .byte 0 # EOM(2)
403 .byte 7 # Abbreviation Code
404 .byte 15 # DW_TAG_pointer_type
405 .byte 0 # DW_CHILDREN_no
406 .byte 73 # DW_AT_type
407 .byte 19 # DW_FORM_ref4
408 .byte 0 # EOM(1)
409 .byte 0 # EOM(2)
410 .byte 0 # EOM(3)
411 .section .debug_addr,"",@progbits
412 .Laddr_table_base0:
413 .quad x
414 .quad y
415 .quad .Lfunc_begin0
416 .quad .Lfunc_begin1
417 .ident "clang version 15.0.0"
418 .section ".note.GNU-stack","",@progbits
419 .section .debug_line,"",@progbits
420 .Lline_table_start0: