xref: /llvm-project/bolt/test/X86/Inputs/dwarf5-debug-line-not-modified-helper.s (revision 66e943b1a9751db1611f6ba07e4c46899455d686)
1# int foo() {
2#   return 0;
3# }
4
5	.text
6	.file	"helper.cpp"
7	.globl	_Z3foov                         # -- Begin function _Z3foov
8	.p2align	4, 0x90
9	.type	_Z3foov,@function
10_Z3foov:                                # @_Z3foov
11.Lfunc_begin0:
12	.file	0 "/test" "helper.cpp" md5 0x95a4a33e7fe9423970d3c798fdf8ed43
13	.loc	0 1 0                           # helper.cpp:1:0
14	.cfi_startproc
15# %bb.0:                                # %entry
16	pushq	%rbp
17	.cfi_def_cfa_offset 16
18	.cfi_offset %rbp, -16
19	movq	%rsp, %rbp
20	.cfi_def_cfa_register %rbp
21.Ltmp0:
22	.loc	0 2 3 prologue_end              # helper.cpp:2:3
23	xorl	%eax, %eax
24	.loc	0 2 3 epilogue_begin is_stmt 0  # helper.cpp:2:3
25	popq	%rbp
26	.cfi_def_cfa %rsp, 8
27	retq
28.Ltmp1:
29.Lfunc_end0:
30	.size	_Z3foov, .Lfunc_end0-_Z3foov
31	.cfi_endproc
32                                        # -- End function
33	.section	.debug_abbrev,"",@progbits
34	.byte	1                               # Abbreviation Code
35	.byte	17                              # DW_TAG_compile_unit
36	.byte	1                               # DW_CHILDREN_yes
37	.byte	37                              # DW_AT_producer
38	.byte	37                              # DW_FORM_strx1
39	.byte	19                              # DW_AT_language
40	.byte	5                               # DW_FORM_data2
41	.byte	3                               # DW_AT_name
42	.byte	37                              # DW_FORM_strx1
43	.byte	114                             # DW_AT_str_offsets_base
44	.byte	23                              # DW_FORM_sec_offset
45	.byte	16                              # DW_AT_stmt_list
46	.byte	23                              # DW_FORM_sec_offset
47	.byte	27                              # DW_AT_comp_dir
48	.byte	37                              # DW_FORM_strx1
49	.byte	17                              # DW_AT_low_pc
50	.byte	27                              # DW_FORM_addrx
51	.byte	18                              # DW_AT_high_pc
52	.byte	6                               # DW_FORM_data4
53	.byte	115                             # DW_AT_addr_base
54	.byte	23                              # DW_FORM_sec_offset
55	.byte	0                               # EOM(1)
56	.byte	0                               # EOM(2)
57	.byte	2                               # Abbreviation Code
58	.byte	46                              # DW_TAG_subprogram
59	.byte	0                               # DW_CHILDREN_no
60	.byte	17                              # DW_AT_low_pc
61	.byte	27                              # DW_FORM_addrx
62	.byte	18                              # DW_AT_high_pc
63	.byte	6                               # DW_FORM_data4
64	.byte	64                              # DW_AT_frame_base
65	.byte	24                              # DW_FORM_exprloc
66	.byte	110                             # DW_AT_linkage_name
67	.byte	37                              # DW_FORM_strx1
68	.byte	3                               # DW_AT_name
69	.byte	37                              # DW_FORM_strx1
70	.byte	58                              # DW_AT_decl_file
71	.byte	11                              # DW_FORM_data1
72	.byte	59                              # DW_AT_decl_line
73	.byte	11                              # DW_FORM_data1
74	.byte	73                              # DW_AT_type
75	.byte	19                              # DW_FORM_ref4
76	.byte	63                              # DW_AT_external
77	.byte	25                              # DW_FORM_flag_present
78	.byte	0                               # EOM(1)
79	.byte	0                               # EOM(2)
80	.byte	3                               # Abbreviation Code
81	.byte	36                              # DW_TAG_base_type
82	.byte	0                               # DW_CHILDREN_no
83	.byte	3                               # DW_AT_name
84	.byte	37                              # DW_FORM_strx1
85	.byte	62                              # DW_AT_encoding
86	.byte	11                              # DW_FORM_data1
87	.byte	11                              # DW_AT_byte_size
88	.byte	11                              # DW_FORM_data1
89	.byte	0                               # EOM(1)
90	.byte	0                               # EOM(2)
91	.byte	0                               # EOM(3)
92	.section	.debug_info,"",@progbits
93.Lcu_begin0:
94	.long	.Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
95.Ldebug_info_start0:
96	.short	5                               # DWARF version number
97	.byte	1                               # DWARF Unit Type
98	.byte	8                               # Address Size (in bytes)
99	.long	.debug_abbrev                   # Offset Into Abbrev. Section
100	.byte	1                               # Abbrev [1] 0xc:0x2c DW_TAG_compile_unit
101	.byte	0                               # DW_AT_producer
102	.short	33                              # DW_AT_language
103	.byte	1                               # DW_AT_name
104	.long	.Lstr_offsets_base0             # DW_AT_str_offsets_base
105	.long	.Lline_table_start0             # DW_AT_stmt_list
106	.byte	2                               # DW_AT_comp_dir
107	.byte	0                               # DW_AT_low_pc
108	.long	.Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc
109	.long	.Laddr_table_base0              # DW_AT_addr_base
110	.byte	2                               # Abbrev [2] 0x23:0x10 DW_TAG_subprogram
111	.byte	0                               # DW_AT_low_pc
112	.long	.Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc
113	.byte	1                               # DW_AT_frame_base
114	.byte	86
115	.byte	3                               # DW_AT_linkage_name
116	.byte	4                               # DW_AT_name
117	.byte	0                               # DW_AT_decl_file
118	.byte	1                               # DW_AT_decl_line
119	.long	51                              # DW_AT_type
120                                        # DW_AT_external
121	.byte	3                               # Abbrev [3] 0x33:0x4 DW_TAG_base_type
122	.byte	5                               # DW_AT_name
123	.byte	5                               # DW_AT_encoding
124	.byte	4                               # DW_AT_byte_size
125	.byte	0                               # End Of Children Mark
126.Ldebug_info_end0:
127	.section	.debug_str_offsets,"",@progbits
128	.long	28                              # Length of String Offsets Set
129	.short	5
130	.short	0
131.Lstr_offsets_base0:
132	.section	.debug_str,"MS",@progbits,1
133.Linfo_string0:
134	.asciz	"clang version 17.0.0 (https://github.com/llvm/llvm-project.git 640e07c49037cca41a1bfbeb916b569d8c950aea)" # string offset=0
135.Linfo_string1:
136	.asciz	"helper.cpp"                    # string offset=105
137.Linfo_string2:
138	.asciz	"/test" # string offset=116
139.Linfo_string3:
140	.asciz	"_Z3foov"                       # string offset=154
141.Linfo_string4:
142	.asciz	"foo"                           # string offset=162
143.Linfo_string5:
144	.asciz	"int"                           # string offset=166
145	.section	.debug_str_offsets,"",@progbits
146	.long	.Linfo_string0
147	.long	.Linfo_string1
148	.long	.Linfo_string2
149	.long	.Linfo_string3
150	.long	.Linfo_string4
151	.long	.Linfo_string5
152	.section	.debug_addr,"",@progbits
153	.long	.Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution
154.Ldebug_addr_start0:
155	.short	5                               # DWARF version number
156	.byte	8                               # Address size
157	.byte	0                               # Segment selector size
158.Laddr_table_base0:
159	.quad	.Lfunc_begin0
160.Ldebug_addr_end0:
161	.ident	"clang version 17.0.0 (https://github.com/llvm/llvm-project.git 640e07c49037cca41a1bfbeb916b569d8c950aea)"
162	.section	".note.GNU-stack","",@progbits
163	.addrsig
164	.section	.debug_line,"",@progbits
165.Lline_table_start0:
166