xref: /llvm-project/llvm/test/tools/llvm-debuginfo-analyzer/WebAssembly/Inputs/hello-world-clang.s (revision b19cfb9175223d3e1bb3ef6d49ccd26d0104906c)
1	.text
2	.file	"hello-world.cpp"
3	.file	1 "/data/projects/scripts/regression-suite/input/general" "hello-world.cpp"
4	.globaltype	__stack_pointer, i32
5	.functype	__original_main () -> (i32)
6	.functype	_Z6printfPKcz (i32, i32) -> (i32)
7	.functype	main (i32, i32) -> (i32)
8	.section	.text.__original_main,"",@
9	.hidden	__original_main                 # -- Begin function __original_main
10	.globl	__original_main
11	.type	__original_main,@function
12__original_main:                        # @__original_main
13.Lfunc_begin0:
14	.loc	1 4 0                           # hello-world.cpp:4:0
15	.functype	__original_main () -> (i32)
16	.local  	i32, i32, i32, i32, i32, i32, i32, i32, i32
17# %bb.0:                                # %entry
18	global.get	__stack_pointer
19	local.set	0
20	i32.const	16
21	local.set	1
22	local.get	0
23	local.get	1
24	i32.sub
25	local.set	2
26	local.get	2
27	global.set	__stack_pointer
28	i32.const	0
29	local.set	3
30	local.get	2
31	local.get	3
32	i32.store	12
33.Ltmp0:
34	.loc	1 5 3 prologue_end              # hello-world.cpp:5:3
35	i32.const	.L.str
36	local.set	4
37	i32.const	0
38	local.set	5
39	local.get	4
40	local.get	5
41	call	_Z6printfPKcz
42	drop
43	.loc	1 6 3                           # hello-world.cpp:6:3
44	i32.const	0
45	local.set	6
46	i32.const	16
47	local.set	7
48	local.get	2
49	local.get	7
50	i32.add
51	local.set	8
52	local.get	8
53	global.set	__stack_pointer
54	local.get	6
55	return
56	end_function
57.Ltmp1:
58.Lfunc_end0:
59                                        # -- End function
60	.section	.text.main,"",@
61	.hidden	main                            # -- Begin function main
62	.globl	main
63	.type	main,@function
64main:                                   # @main
65.Lfunc_begin1:
66	.functype	main (i32, i32) -> (i32)
67	.local  	i32
68# %bb.0:                                # %body
69	call	__original_main
70	local.set	2
71	local.get	2
72	return
73	end_function
74.Lfunc_end1:
75                                        # -- End function
76	.type	.L.str,@object                  # @.str
77	.section	.rodata..L.str,"S",@
78.L.str:
79	.asciz	"Hello, World\n"
80	.size	.L.str, 14
81
82	.globl	__main_void
83	.type	__main_void,@function
84	.hidden	__main_void
85.set __main_void, __original_main
86	.section	.debug_abbrev,"",@
87	.int8	1                               # Abbreviation Code
88	.int8	17                              # DW_TAG_compile_unit
89	.int8	1                               # DW_CHILDREN_yes
90	.int8	37                              # DW_AT_producer
91	.int8	14                              # DW_FORM_strp
92	.int8	19                              # DW_AT_language
93	.int8	5                               # DW_FORM_data2
94	.int8	3                               # DW_AT_name
95	.int8	14                              # DW_FORM_strp
96	.int8	16                              # DW_AT_stmt_list
97	.int8	23                              # DW_FORM_sec_offset
98	.int8	27                              # DW_AT_comp_dir
99	.int8	14                              # DW_FORM_strp
100	.int8	17                              # DW_AT_low_pc
101	.int8	1                               # DW_FORM_addr
102	.int8	18                              # DW_AT_high_pc
103	.int8	6                               # DW_FORM_data4
104	.int8	0                               # EOM(1)
105	.int8	0                               # EOM(2)
106	.int8	2                               # Abbreviation Code
107	.int8	52                              # DW_TAG_variable
108	.int8	0                               # DW_CHILDREN_no
109	.int8	73                              # DW_AT_type
110	.int8	19                              # DW_FORM_ref4
111	.int8	58                              # DW_AT_decl_file
112	.int8	11                              # DW_FORM_data1
113	.int8	59                              # DW_AT_decl_line
114	.int8	11                              # DW_FORM_data1
115	.int8	2                               # DW_AT_location
116	.int8	24                              # DW_FORM_exprloc
117	.int8	0                               # EOM(1)
118	.int8	0                               # EOM(2)
119	.int8	3                               # Abbreviation Code
120	.int8	1                               # DW_TAG_array_type
121	.int8	1                               # DW_CHILDREN_yes
122	.int8	73                              # DW_AT_type
123	.int8	19                              # DW_FORM_ref4
124	.int8	0                               # EOM(1)
125	.int8	0                               # EOM(2)
126	.int8	4                               # Abbreviation Code
127	.int8	33                              # DW_TAG_subrange_type
128	.int8	0                               # DW_CHILDREN_no
129	.int8	73                              # DW_AT_type
130	.int8	19                              # DW_FORM_ref4
131	.int8	55                              # DW_AT_count
132	.int8	11                              # DW_FORM_data1
133	.int8	0                               # EOM(1)
134	.int8	0                               # EOM(2)
135	.int8	5                               # Abbreviation Code
136	.int8	38                              # DW_TAG_const_type
137	.int8	0                               # DW_CHILDREN_no
138	.int8	73                              # DW_AT_type
139	.int8	19                              # DW_FORM_ref4
140	.int8	0                               # EOM(1)
141	.int8	0                               # EOM(2)
142	.int8	6                               # Abbreviation Code
143	.int8	36                              # DW_TAG_base_type
144	.int8	0                               # DW_CHILDREN_no
145	.int8	3                               # DW_AT_name
146	.int8	14                              # DW_FORM_strp
147	.int8	62                              # DW_AT_encoding
148	.int8	11                              # DW_FORM_data1
149	.int8	11                              # DW_AT_byte_size
150	.int8	11                              # DW_FORM_data1
151	.int8	0                               # EOM(1)
152	.int8	0                               # EOM(2)
153	.int8	7                               # Abbreviation Code
154	.int8	36                              # DW_TAG_base_type
155	.int8	0                               # DW_CHILDREN_no
156	.int8	3                               # DW_AT_name
157	.int8	14                              # DW_FORM_strp
158	.int8	11                              # DW_AT_byte_size
159	.int8	11                              # DW_FORM_data1
160	.int8	62                              # DW_AT_encoding
161	.int8	11                              # DW_FORM_data1
162	.int8	0                               # EOM(1)
163	.int8	0                               # EOM(2)
164	.int8	8                               # Abbreviation Code
165	.int8	46                              # DW_TAG_subprogram
166	.int8	0                               # DW_CHILDREN_no
167	.int8	17                              # DW_AT_low_pc
168	.int8	1                               # DW_FORM_addr
169	.int8	18                              # DW_AT_high_pc
170	.int8	6                               # DW_FORM_data4
171	.int8	64                              # DW_AT_frame_base
172	.int8	24                              # DW_FORM_exprloc
173	.int8	3                               # DW_AT_name
174	.int8	14                              # DW_FORM_strp
175	.int8	58                              # DW_AT_decl_file
176	.int8	11                              # DW_FORM_data1
177	.int8	59                              # DW_AT_decl_line
178	.int8	11                              # DW_FORM_data1
179	.int8	73                              # DW_AT_type
180	.int8	19                              # DW_FORM_ref4
181	.int8	63                              # DW_AT_external
182	.int8	25                              # DW_FORM_flag_present
183	.int8	0                               # EOM(1)
184	.int8	0                               # EOM(2)
185	.int8	0                               # EOM(3)
186	.section	.debug_info,"",@
187.Lcu_begin0:
188	.int32	.Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
189.Ldebug_info_start0:
190	.int16	4                               # DWARF version number
191	.int32	.debug_abbrev0                  # Offset Into Abbrev. Section
192	.int8	4                               # Address Size (in bytes)
193	.int8	1                               # Abbrev [1] 0xb:0x67 DW_TAG_compile_unit
194	.int32	.Linfo_string0                  # DW_AT_producer
195	.int16	33                              # DW_AT_language
196	.int32	.Linfo_string1                  # DW_AT_name
197	.int32	.Lline_table_start0             # DW_AT_stmt_list
198	.int32	.Linfo_string2                  # DW_AT_comp_dir
199	.int32	.Lfunc_begin0                   # DW_AT_low_pc
200	.int32	.Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc
201	.int8	2                               # Abbrev [2] 0x26:0xd DW_TAG_variable
202	.int32	51                              # DW_AT_type
203	.int8	1                               # DW_AT_decl_file
204	.int8	5                               # DW_AT_decl_line
205	.int8	5                               # DW_AT_location
206	.int8	3
207	.int32	.L.str
208	.int8	3                               # Abbrev [3] 0x33:0xc DW_TAG_array_type
209	.int32	63                              # DW_AT_type
210	.int8	4                               # Abbrev [4] 0x38:0x6 DW_TAG_subrange_type
211	.int32	75                              # DW_AT_type
212	.int8	14                              # DW_AT_count
213	.int8	0                               # End Of Children Mark
214	.int8	5                               # Abbrev [5] 0x3f:0x5 DW_TAG_const_type
215	.int32	68                              # DW_AT_type
216	.int8	6                               # Abbrev [6] 0x44:0x7 DW_TAG_base_type
217	.int32	.Linfo_string3                  # DW_AT_name
218	.int8	6                               # DW_AT_encoding
219	.int8	1                               # DW_AT_byte_size
220	.int8	7                               # Abbrev [7] 0x4b:0x7 DW_TAG_base_type
221	.int32	.Linfo_string4                  # DW_AT_name
222	.int8	8                               # DW_AT_byte_size
223	.int8	7                               # DW_AT_encoding
224	.int8	8                               # Abbrev [8] 0x52:0x18 DW_TAG_subprogram
225	.int32	.Lfunc_begin0                   # DW_AT_low_pc
226	.int32	.Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc
227	.int8	4                               # DW_AT_frame_base
228	.int8	237
229	.int8	0
230	.int8	2
231	.int8	159
232	.int32	.Linfo_string5                  # DW_AT_name
233	.int8	1                               # DW_AT_decl_file
234	.int8	3                               # DW_AT_decl_line
235	.int32	106                             # DW_AT_type
236                                        # DW_AT_external
237	.int8	6                               # Abbrev [6] 0x6a:0x7 DW_TAG_base_type
238	.int32	.Linfo_string6                  # DW_AT_name
239	.int8	5                               # DW_AT_encoding
240	.int8	4                               # DW_AT_byte_size
241	.int8	0                               # End Of Children Mark
242.Ldebug_info_end0:
243	.section	.debug_str,"S",@
244.Linfo_string0:
245	.asciz	"clang version 19.0.0git (/data/projects/llvm-root/llvm-project/clang 2db6703f0c257d293df455e2dff8c1fb695c4100)" # string offset=0
246.Linfo_string1:
247	.asciz	"hello-world.cpp"               # string offset=111
248.Linfo_string2:
249	.asciz	"/data/projects/scripts/regression-suite/input/general" # string offset=127
250.Linfo_string3:
251	.asciz	"char"                          # string offset=181
252.Linfo_string4:
253	.asciz	"__ARRAY_SIZE_TYPE__"           # string offset=186
254.Linfo_string5:
255	.asciz	"main"                          # string offset=206
256.Linfo_string6:
257	.asciz	"int"                           # string offset=211
258	.ident	"clang version 19.0.0git (/data/projects/llvm-root/llvm-project/clang 2db6703f0c257d293df455e2dff8c1fb695c4100)"
259	.no_dead_strip	__indirect_function_table
260	.section	.custom_section.producers,"",@
261	.int8	2
262	.int8	8
263	.ascii	"language"
264	.int8	1
265	.int8	14
266	.ascii	"C_plus_plus_14"
267	.int8	0
268	.int8	12
269	.ascii	"processed-by"
270	.int8	1
271	.int8	5
272	.ascii	"clang"
273	.int8	96
274	.ascii	"19.0.0git (/data/projects/llvm-root/llvm-project/clang 2db6703f0c257d293df455e2dff8c1fb695c4100)"
275	.section	.debug_str,"S",@
276	.section	.custom_section.target_features,"",@
277	.int8	2
278	.int8	43
279	.int8	15
280	.ascii	"mutable-globals"
281	.int8	43
282	.int8	8
283	.ascii	"sign-ext"
284	.section	.debug_str,"S",@
285	.section	.debug_line,"",@
286.Lline_table_start0:
287