Follow up to d0858bffa11, add missing REQUIRES x86
[llvm-project.git] / llvm / test / tools / llvm-dwp / Inputs / overflow / main_v4.s
blob8eb0feac951e2e6bbd13a49a4f8b74aa13b77caf
1 # Note: This file is compiled from the following code, for
2 # the purpose of creating an overflowed dwo section.
3 # The code is not further modified after being compiled.
4 #
5 # clang -g -S -gsplit-dwarf -gdwarf-4 main.c
7 # #include <stdio.h>
8 #
9 # void hello();
11 # int main() {
12 # hello();
13 # return 0;
14 # }
16 .text
17 .file "main.c"
18 .globl main # -- Begin function main
19 .p2align 4, 0x90
20 .type main,@function
21 main: # @main
22 .Lfunc_begin0:
23 .file 1 "/xxxxxx/xxxx/xxxxxxxxxx/xxxxxxxx/hello" "main.c"
24 .loc 1 5 0 # main.c:5:0
25 .cfi_startproc
26 # %bb.0:
27 pushq %rbp
28 .cfi_def_cfa_offset 16
29 .cfi_offset %rbp, -16
30 movq %rsp, %rbp
31 .cfi_def_cfa_register %rbp
32 subq $16, %rsp
33 movl $0, -4(%rbp)
34 .Ltmp0:
35 .loc 1 6 5 prologue_end # main.c:6:5
36 movb $0, %al
37 callq hello
38 xorl %eax, %eax
39 .loc 1 7 5 # main.c:7:5
40 addq $16, %rsp
41 popq %rbp
42 .cfi_def_cfa %rsp, 8
43 retq
44 .Ltmp1:
45 .Lfunc_end0:
46 .size main, .Lfunc_end0-main
47 .cfi_endproc
48 # -- End function
49 .section .debug_abbrev,"",@progbits
50 .byte 1 # Abbreviation Code
51 .byte 17 # DW_TAG_compile_unit
52 .byte 0 # DW_CHILDREN_no
53 .byte 16 # DW_AT_stmt_list
54 .byte 23 # DW_FORM_sec_offset
55 .byte 27 # DW_AT_comp_dir
56 .byte 14 # DW_FORM_strp
57 .ascii "\264B" # DW_AT_GNU_pubnames
58 .byte 25 # DW_FORM_flag_present
59 .ascii "\260B" # DW_AT_GNU_dwo_name
60 .byte 14 # DW_FORM_strp
61 .ascii "\261B" # DW_AT_GNU_dwo_id
62 .byte 7 # DW_FORM_data8
63 .byte 17 # DW_AT_low_pc
64 .byte 1 # DW_FORM_addr
65 .byte 18 # DW_AT_high_pc
66 .byte 6 # DW_FORM_data4
67 .ascii "\263B" # DW_AT_GNU_addr_base
68 .byte 23 # DW_FORM_sec_offset
69 .byte 0 # EOM(1)
70 .byte 0 # EOM(2)
71 .byte 0 # EOM(3)
72 .section .debug_info,"",@progbits
73 .Lcu_begin0:
74 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
75 .Ldebug_info_start0:
76 .short 4 # DWARF version number
77 .long .debug_abbrev # Offset Into Abbrev. Section
78 .byte 8 # Address Size (in bytes)
79 .byte 1 # Abbrev [1] 0xb:0x25 DW_TAG_compile_unit
80 .long .Lline_table_start0 # DW_AT_stmt_list
81 .long .Lskel_string0 # DW_AT_comp_dir
82 # DW_AT_GNU_pubnames
83 .long .Lskel_string1 # DW_AT_GNU_dwo_name
84 .quad -346972125991005518 # DW_AT_GNU_dwo_id
85 .quad .Lfunc_begin0 # DW_AT_low_pc
86 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
87 .long .Laddr_table_base0 # DW_AT_GNU_addr_base
88 .Ldebug_info_end0:
89 .section .debug_str,"MS",@progbits,1
90 .Lskel_string0:
91 .asciz "/xxxxxx/xxxx/xxxxxxxxxx/xxxxxxxx/hello" # string offset=0
92 .Lskel_string1:
93 .asciz "main.dwo" # string offset=39
94 .section .debug_str.dwo,"eMS",@progbits,1
95 .Linfo_string0:
96 .asciz "main" # string offset=0
97 .Linfo_string1:
98 .asciz "int" # string offset=5
99 .Linfo_string2:
100 .asciz "clang version 11.1.0 (https://github.com/llvm/llvm-project.git ed8f312fb1ca0bf525676906c7841db0cefcf5a7)" # string offset=9
101 .Linfo_string3:
102 .asciz "main.c" # string offset=114
103 .Linfo_string4:
104 .asciz "main.dwo" # string offset=121
105 .section .debug_str_offsets.dwo,"e",@progbits
106 .long 0
107 .long 5
108 .long 9
109 .long 114
110 .long 121
111 .section .debug_info.dwo,"e",@progbits
112 .long .Ldebug_info_dwo_end0-.Ldebug_info_dwo_start0 # Length of Unit
113 .Ldebug_info_dwo_start0:
114 .short 4 # DWARF version number
115 .long 0 # Offset Into Abbrev. Section
116 .byte 8 # Address Size (in bytes)
117 .byte 1 # Abbrev [1] 0xb:0x22 DW_TAG_compile_unit
118 .byte 2 # DW_AT_producer
119 .short 12 # DW_AT_language
120 .byte 3 # DW_AT_name
121 .byte 4 # DW_AT_GNU_dwo_name
122 .quad -346972125991005518 # DW_AT_GNU_dwo_id
123 .byte 2 # Abbrev [2] 0x19:0xf DW_TAG_subprogram
124 .byte 0 # DW_AT_low_pc
125 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
126 .byte 1 # DW_AT_frame_base
127 .byte 86
128 .byte 0 # DW_AT_name
129 .byte 1 # DW_AT_decl_file
130 .byte 5 # DW_AT_decl_line
131 .long 40 # DW_AT_type
132 # DW_AT_external
133 .byte 3 # Abbrev [3] 0x28:0x4 DW_TAG_base_type
134 .byte 1 # DW_AT_name
135 .byte 5 # DW_AT_encoding
136 .byte 4 # DW_AT_byte_size
137 .byte 0 # End Of Children Mark
138 .Ldebug_info_dwo_end0:
139 .section .debug_abbrev.dwo,"e",@progbits
140 .byte 1 # Abbreviation Code
141 .byte 17 # DW_TAG_compile_unit
142 .byte 1 # DW_CHILDREN_yes
143 .byte 37 # DW_AT_producer
144 .ascii "\202>" # DW_FORM_GNU_str_index
145 .byte 19 # DW_AT_language
146 .byte 5 # DW_FORM_data2
147 .byte 3 # DW_AT_name
148 .ascii "\202>" # DW_FORM_GNU_str_index
149 .ascii "\260B" # DW_AT_GNU_dwo_name
150 .ascii "\202>" # DW_FORM_GNU_str_index
151 .ascii "\261B" # DW_AT_GNU_dwo_id
152 .byte 7 # DW_FORM_data8
153 .byte 0 # EOM(1)
154 .byte 0 # EOM(2)
155 .byte 2 # Abbreviation Code
156 .byte 46 # DW_TAG_subprogram
157 .byte 0 # DW_CHILDREN_no
158 .byte 17 # DW_AT_low_pc
159 .ascii "\201>" # DW_FORM_GNU_addr_index
160 .byte 18 # DW_AT_high_pc
161 .byte 6 # DW_FORM_data4
162 .byte 64 # DW_AT_frame_base
163 .byte 24 # DW_FORM_exprloc
164 .byte 3 # DW_AT_name
165 .ascii "\202>" # DW_FORM_GNU_str_index
166 .byte 58 # DW_AT_decl_file
167 .byte 11 # DW_FORM_data1
168 .byte 59 # DW_AT_decl_line
169 .byte 11 # DW_FORM_data1
170 .byte 73 # DW_AT_type
171 .byte 19 # DW_FORM_ref4
172 .byte 63 # DW_AT_external
173 .byte 25 # DW_FORM_flag_present
174 .byte 0 # EOM(1)
175 .byte 0 # EOM(2)
176 .byte 3 # Abbreviation Code
177 .byte 36 # DW_TAG_base_type
178 .byte 0 # DW_CHILDREN_no
179 .byte 3 # DW_AT_name
180 .ascii "\202>" # DW_FORM_GNU_str_index
181 .byte 62 # DW_AT_encoding
182 .byte 11 # DW_FORM_data1
183 .byte 11 # DW_AT_byte_size
184 .byte 11 # DW_FORM_data1
185 .byte 0 # EOM(1)
186 .byte 0 # EOM(2)
187 .byte 0 # EOM(3)
188 .section .debug_addr,"",@progbits
189 .Laddr_table_base0:
190 .quad .Lfunc_begin0
191 .section .debug_gnu_pubnames,"",@progbits
192 .long .LpubNames_end0-.LpubNames_begin0 # Length of Public Names Info
193 .LpubNames_begin0:
194 .short 2 # DWARF Version
195 .long .Lcu_begin0 # Offset of Compilation Unit Info
196 .long 48 # Compilation Unit Length
197 .long 25 # DIE offset
198 .byte 48 # Attributes: FUNCTION, EXTERNAL
199 .asciz "main" # External Name
200 .long 0 # End Mark
201 .LpubNames_end0:
202 .section .debug_gnu_pubtypes,"",@progbits
203 .long .LpubTypes_end0-.LpubTypes_begin0 # Length of Public Types Info
204 .LpubTypes_begin0:
205 .short 2 # DWARF Version
206 .long .Lcu_begin0 # Offset of Compilation Unit Info
207 .long 48 # Compilation Unit Length
208 .long 40 # DIE offset
209 .byte 144 # Attributes: TYPE, STATIC
210 .asciz "int" # External Name
211 .long 0 # End Mark
212 .LpubTypes_end0:
213 .ident "clang version 11.1.0 (https://github.com/llvm/llvm-project.git ed8f312fb1ca0bf525676906c7841db0cefcf5a7)"
214 .section ".note.GNU-stack","",@progbits
215 .addrsig
216 .addrsig_sym hello
217 .section .debug_line,"",@progbits
218 .Lline_table_start0: