[flang][cuda] Do not register global constants (#118582)
[llvm-project.git] / llvm / test / tools / llvm-dwarfdump / X86 / debug-names-find.s
blob632e4e422e086e5e195bdc8133d1dd95d2bd05a7
1 # RUN: llvm-mc -triple x86_64-pc-linux %s -filetype=obj -o %t
2 # RUN: llvm-dwarfdump -find=foo - <%t | FileCheck --check-prefix=FOO %s
3 # RUN: llvm-dwarfdump -find=baz - <%t | FileCheck --check-prefix=BAZ %s
4 # RUN: llvm-dwarfdump -find=missing - <%t | FileCheck --check-prefix=MISSING %s
6 # FOO: DW_TAG_subprogram
7 # FOO-NEXT: DW_AT_name ("foo")
8 # FOO-NEXT: DW_AT_external
10 # BAZ: DW_TAG_subprogram
11 # BAZ-NEXT: DW_AT_name ("baz")
12 # BAZ-NEXT: DW_AT_external
14 # MISSING-NOT: foo
15 # MISSING-NOT: bar
16 # MISSING-NOT: baz
17 # MISSING-NOT: bazz
19 .section .debug_str,"MS",@progbits,1
20 .Lstring_foo:
21 .asciz "foo"
22 .Lstring_foo_mangled:
23 .asciz "_Z3foov"
24 .Lstring_bar:
25 .asciz "bar"
26 .Lstring_baz:
27 .asciz "baz"
28 .Lstring_bazz:
29 .asciz "bazz"
30 .Lstring_producer:
31 .asciz "Hand-written dwarf"
33 .section .debug_abbrev,"",@progbits
34 .Lsection_abbrev:
35 .byte 1 # Abbreviation Code
36 .byte 17 # DW_TAG_compile_unit
37 .byte 1 # DW_CHILDREN_yes
38 .byte 37 # DW_AT_producer
39 .byte 14 # DW_FORM_strp
40 .byte 19 # DW_AT_language
41 .byte 5 # DW_FORM_data2
42 .byte 0 # EOM(1)
43 .byte 0 # EOM(2)
44 .byte 2 # Abbreviation Code
45 .byte 46 # DW_TAG_subprogram
46 .byte 0 # DW_CHILDREN_no
47 .byte 3 # DW_AT_name
48 .byte 14 # DW_FORM_strp
49 .byte 63 # DW_AT_external
50 .byte 25 # DW_FORM_flag_present
51 .byte 0 # EOM(1)
52 .byte 0 # EOM(2)
53 .byte 0 # EOM(3)
55 .section .debug_info,"",@progbits
56 .Lcu_begin0:
57 .long .Lcu_end0-.Lcu_start0 # Length of Unit
58 .Lcu_start0:
59 .short 4 # DWARF version number
60 .long .Lsection_abbrev # Offset Into Abbrev. Section
61 .byte 8 # Address Size (in bytes)
62 .byte 1 # Abbrev [1] DW_TAG_compile_unit
63 .long .Lstring_producer # DW_AT_producer
64 .short 12 # DW_AT_language
65 .Ldie_foo:
66 .byte 2 # Abbrev [2] DW_TAG_subprogram
67 .long .Lstring_foo # DW_AT_name
68 # DW_AT_external
69 .Ldie_bar:
70 .byte 2 # Abbrev [2] DW_TAG_subprogram
71 .long .Lstring_bar # DW_AT_name
72 # DW_AT_external
73 .byte 0 # End Of Children Mark
74 .Lcu_end0:
76 .Lcu_begin1:
77 .long .Lcu_end1-.Lcu_start1 # Length of Unit
78 .Lcu_start1:
79 .short 4 # DWARF version number
80 .long .Lsection_abbrev # Offset Into Abbrev. Section
81 .byte 8 # Address Size (in bytes)
82 .byte 1 # Abbrev [1] DW_TAG_compile_unit
83 .long .Lstring_producer # DW_AT_producer
84 .short 12 # DW_AT_language
85 .Ldie_baz:
86 .byte 2 # Abbrev [2] DW_TAG_subprogram
87 .long .Lstring_baz # DW_AT_name
88 # DW_AT_external
89 .Ldie_bazz:
90 .byte 2 # Abbrev [2] DW_TAG_subprogram
91 .long .Lstring_bazz # DW_AT_name
92 # DW_AT_external
93 .byte 0 # End Of Children Mark
94 .Lcu_end1:
96 .section .debug_names,"",@progbits
97 .long .Lnames_end0-.Lnames_start0 # Header: contribution length
98 .Lnames_start0:
99 .short 5 # Header: version
100 .short 0 # Header: padding
101 .long 1 # Header: compilation unit count
102 .long 0 # Header: local type unit count
103 .long 0 # Header: foreign type unit count
104 .long 2 # Header: bucket count
105 .long 3 # Header: name count
106 .long .Lnames_abbrev_end0-.Lnames_abbrev_start0 # Header: abbreviation table size
107 .long 0 # Header: augmentation length
108 .long .Lcu_begin0 # Compilation unit 0
109 .long 1 # Bucket 0
110 .long 2 # Bucket 1
111 .long 193487034 # Hash in Bucket 0
112 .long 193491849 # Hash in Bucket 1
113 .long -1257882357 # Hash in Bucket 1
114 .long .Lstring_bar # String in Bucket 1: bar
115 .long .Lstring_foo # String in Bucket 1: foo
116 .long .Lstring_foo_mangled # String in Bucket 1: _Z3foov
117 .long .Lnames0-.Lnames_entries0 # Offset in Bucket 1
118 .long .Lnames1-.Lnames_entries0 # Offset in Bucket 1
119 .long .Lnames2-.Lnames_entries0 # Offset in Bucket 1
120 .Lnames_abbrev_start0:
121 .byte 46 # Abbrev code
122 .byte 46 # DW_TAG_subprogram
123 .byte 3 # DW_IDX_die_offset
124 .byte 19 # DW_FORM_ref4
125 .byte 0 # End of abbrev
126 .byte 0 # End of abbrev
127 .byte 0 # End of abbrev list
128 .Lnames_abbrev_end0:
129 .Lnames_entries0:
130 .Lnames0:
131 .byte 46 # Abbrev code
132 .long .Ldie_bar-.Lcu_begin0 # DW_IDX_die_offset
133 .long 0 # End of list: bar
134 .Lnames1:
135 .byte 46 # Abbrev code
136 .long .Ldie_foo-.Lcu_begin0 # DW_IDX_die_offset
137 .long 0 # End of list: foo
138 .Lnames2:
139 .byte 46 # Abbrev code
140 .long .Ldie_foo-.Lcu_begin0 # DW_IDX_die_offset
141 .long 0 # End of list: _Z3foov
142 .p2align 2
143 .Lnames_end0:
145 # Index of compilation unit 1. This one has no hash table.
146 .long .Lnames_end1-.Lnames_start1 # Header: contribution length
147 .Lnames_start1:
148 .short 5 # Header: version
149 .short 0 # Header: padding
150 .long 1 # Header: compilation unit count
151 .long 0 # Header: local type unit count
152 .long 0 # Header: foreign type unit count
153 .long 0 # Header: bucket count
154 .long 2 # Header: name count
155 .long .Lnames_abbrev_end1-.Lnames_abbrev_start1 # Header: abbreviation table size
156 .long 0 # Header: augmentation length
157 .long .Lcu_begin1 # Compilation unit 0
158 .long .Lstring_baz # String in Bucket 1: baz
159 .long .Lstring_bazz # String in Bucket 1: bazz
160 .long .Lnames3-.Lnames_entries1 # Offset in Bucket 1
161 .long .Lnames4-.Lnames_entries1 # Offset in Bucket 1
162 .Lnames_abbrev_start1:
163 .byte 46 # Abbrev code
164 .byte 46 # DW_TAG_subprogram
165 .byte 3 # DW_IDX_die_offset
166 .byte 19 # DW_FORM_ref4
167 .byte 0 # End of abbrev
168 .byte 0 # End of abbrev
169 .byte 0 # End of abbrev list
170 .Lnames_abbrev_end1:
171 .Lnames_entries1:
172 .Lnames3:
173 .byte 46 # Abbrev code
174 .long .Ldie_baz-.Lcu_begin1 # DW_IDX_die_offset
175 .long 0 # End of list: baz
176 .p2align 2
177 .Lnames4:
178 .byte 46 # Abbrev code
179 .long .Ldie_bazz-.Lcu_begin1 # DW_IDX_die_offset
180 .long 0 # End of list: baz
181 .p2align 2
182 .Lnames_end1: