@@ -19,12 +19,14 @@ declare void @foo()
19
19
20
20
define void @bar () {
21
21
%1 = alloca i8* , align 8
22
+ %2 = alloca i8* , align 8
22
23
store i32 0 , i32* @a , align 4
23
24
store i64 0 , i64* @b , align 8
24
25
store i16 0 , i16* @c , align 2
25
26
store i32 0 , i32* @globa , align 4
26
27
store void (...)* bitcast (void ()* @bar to void (...)*), void (...)** @ptr , align 4
27
28
store i8* bitcast (void ()* @foo to i8* ), i8** %1 , align 8
29
+ store i8* bitcast (void ()* @foobar to i8* ), i8** %2 , align 8
28
30
ret void
29
31
}
30
32
@@ -36,6 +38,10 @@ define void @bar2() {
36
38
ret void
37
39
}
38
40
41
+ define void @foobar () {
42
+ ret void
43
+ }
44
+
39
45
; CHECK-NOT: .comm a
40
46
; CHECK-NOT: .lcomm a
41
47
; CHECK-NOT: .comm b
@@ -60,10 +66,12 @@ define void @bar2() {
60
66
; CHECK-NEXT: .tc bar[TC],bar[DS]
61
67
; CHECK-NEXT: LC6:
62
68
; CHECK-NEXT: .tc foo[TC],foo[DS]
69
+ ; CHECK-NEXT: LC7:
70
+ ; CHECK-NEXT: .tc foobar[TC],foobar[DS]
63
71
64
72
; SYM: File: {{.*}}aix-xcoff-toc.ll.tmp.o
65
73
; SYM: Symbol {{[{][[:space:]] *}}Index: [[#INDX:]]{{[[:space:]] *}}Name: TOC
66
- ; SYM-NEXT: Value (RelocatableAddress): 0x8C
74
+ ; SYM-NEXT: Value (RelocatableAddress): 0xA8
67
75
; SYM-NEXT: Section: .data
68
76
; SYM-NEXT: Type: 0x0
69
77
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
@@ -83,7 +91,7 @@ define void @bar2() {
83
91
; SYM-NEXT: Symbol {
84
92
; SYM-NEXT: Index: [[#INDX+2]]
85
93
; SYM-NEXT: Name: a
86
- ; SYM-NEXT: Value (RelocatableAddress): 0x8C
94
+ ; SYM-NEXT: Value (RelocatableAddress): 0xA8
87
95
; SYM-NEXT: Section: .data
88
96
; SYM-NEXT: Type: 0x0
89
97
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
@@ -103,7 +111,7 @@ define void @bar2() {
103
111
; SYM-NEXT: Symbol {
104
112
; SYM-NEXT: Index: [[#INDX+4]]
105
113
; SYM-NEXT: Name: b
106
- ; SYM-NEXT: Value (RelocatableAddress): 0x90
114
+ ; SYM-NEXT: Value (RelocatableAddress): 0xAC
107
115
; SYM-NEXT: Section: .data
108
116
; SYM-NEXT: Type: 0x0
109
117
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
@@ -123,7 +131,7 @@ define void @bar2() {
123
131
; SYM-NEXT: Symbol {
124
132
; SYM-NEXT: Index: [[#INDX+6]]
125
133
; SYM-NEXT: Name: c
126
- ; SYM-NEXT: Value (RelocatableAddress): 0x94
134
+ ; SYM-NEXT: Value (RelocatableAddress): 0xB0
127
135
; SYM-NEXT: Section: .data
128
136
; SYM-NEXT: Type: 0x0
129
137
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
@@ -143,7 +151,7 @@ define void @bar2() {
143
151
; SYM-NEXT: Symbol {
144
152
; SYM-NEXT: Index: [[#INDX+8]]
145
153
; SYM-NEXT: Name: globa
146
- ; SYM-NEXT: Value (RelocatableAddress): 0x98
154
+ ; SYM-NEXT: Value (RelocatableAddress): 0xB4
147
155
; SYM-NEXT: Section: .data
148
156
; SYM-NEXT: Type: 0x0
149
157
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
@@ -163,7 +171,7 @@ define void @bar2() {
163
171
; SYM-NEXT: Symbol {
164
172
; SYM-NEXT: Index: [[#INDX+10]]
165
173
; SYM-NEXT: Name: ptr
166
- ; SYM-NEXT: Value (RelocatableAddress): 0x9C
174
+ ; SYM-NEXT: Value (RelocatableAddress): 0xB8
167
175
; SYM-NEXT: Section: .data
168
176
; SYM-NEXT: Type: 0x0
169
177
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
@@ -183,7 +191,7 @@ define void @bar2() {
183
191
; SYM-NEXT: Symbol {
184
192
; SYM-NEXT: Index: [[#INDX+12]]
185
193
; SYM-NEXT: Name: bar
186
- ; SYM-NEXT: Value (RelocatableAddress): 0xA0
194
+ ; SYM-NEXT: Value (RelocatableAddress): 0xBC
187
195
; SYM-NEXT: Section: .data
188
196
; SYM-NEXT: Type: 0x0
189
197
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
@@ -203,7 +211,7 @@ define void @bar2() {
203
211
; SYM-NEXT: Symbol {
204
212
; SYM-NEXT: Index: [[#INDX+14]]
205
213
; SYM-NEXT: Name: foo
206
- ; SYM-NEXT: Value (RelocatableAddress): 0xA4
214
+ ; SYM-NEXT: Value (RelocatableAddress): 0xC0
207
215
; SYM-NEXT: Section: .data
208
216
; SYM-NEXT: Type: 0x0
209
217
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
@@ -220,3 +228,23 @@ define void @bar2() {
220
228
; SYM-NEXT: StabSectNum: 0x0
221
229
; SYM-NEXT: }
222
230
; SYM-NEXT: }
231
+ ; SYM-NEXT: Symbol {
232
+ ; SYM-NEXT: Index: [[#INDX+16]]
233
+ ; SYM-NEXT: Name: foobar
234
+ ; SYM-NEXT: Value (RelocatableAddress): 0xC4
235
+ ; SYM-NEXT: Section: .data
236
+ ; SYM-NEXT: Type: 0x0
237
+ ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
238
+ ; SYM-NEXT: NumberOfAuxEntries: 1
239
+ ; SYM-NEXT: CSECT Auxiliary Entry {
240
+ ; SYM-NEXT: Index: [[#INDX+17]]
241
+ ; SYM-NEXT: SectionLen: 4
242
+ ; SYM-NEXT: ParameterHashIndex: 0x0
243
+ ; SYM-NEXT: TypeChkSectNum: 0x0
244
+ ; SYM-NEXT: SymbolAlignmentLog2: 2
245
+ ; SYM-NEXT: SymbolType: XTY_SD (0x1)
246
+ ; SYM-NEXT: StorageMappingClass: XMC_TC (0x3)
247
+ ; SYM-NEXT: StabInfoIndex: 0x0
248
+ ; SYM-NEXT: StabSectNum: 0x0
249
+ ; SYM-NEXT: }
250
+ ; SYM-NEXT: }
0 commit comments