1 ; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mtriple powerpc-ibm-aix-xcoff -mattr=-altivec \
2 ; RUN: -xcoff-traceback-table=false -data-sections=false -filetype=obj -o %t.o < %s
3 ; RUN: llvm-readobj --section-headers --file-header %t.o | FileCheck --check-prefixes=OBJ,OBJ32 %s
4 ; RUN: llvm-readobj --relocs --expand-relocs %t.o | FileCheck --check-prefixes=RELOC,RELOC32 %s
5 ; RUN: llvm-readobj --syms %t.o | FileCheck --check-prefixes=SYM,SYM32 %s
6 ; RUN: llvm-objdump -D %t.o | FileCheck --check-prefix=DIS %s
7 ; RUN: llvm-objdump -r %t.o | FileCheck --check-prefix=DIS_REL %s
9 ; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mtriple powerpc64-ibm-aix-xcoff -mattr=-altivec \
10 ; RUN: -xcoff-traceback-table=false -data-sections=false -filetype=obj -o %t64.o < %s
11 ; RUN: llvm-readobj --section-headers --file-header %t64.o | FileCheck --check-prefixes=OBJ,OBJ64 %s
12 ; RUN: llvm-readobj --relocs --expand-relocs %t64.o | FileCheck --check-prefixes=RELOC,RELOC64 %s
13 ; RUN: llvm-readobj --syms %t64.o | FileCheck --check-prefixes=SYM,SYM64 %s
14 ; RUN: llvm-objdump -D %t64.o | FileCheck --check-prefix=DIS64 %s
15 ; RUN: llvm-objdump -r %t64.o | FileCheck --check-prefix=DIS_REL64 %s
17 @globalA = global i32 1, align 4
18 @globalB = global i32 2, align 4
19 @arr = global <{ i32, [9 x i32] }> <{ i32 3, [9 x i32] zeroinitializer }>, align 4
20 @p = global ptr getelementptr (i8, ptr @arr, i64 16), align 4
24 %call = call i32 @bar(i32 1)
25 %0 = load i32, ptr @globalA, align 4
26 %add = add nsw i32 %call, %0
27 %1 = load i32, ptr @globalB, align 4
28 %add1 = add nsw i32 %add, %1
35 ; OBJ32-NEXT: Magic: 0x1DF
36 ; OBJ64-NEXT: Magic: 0x1F7
37 ; OBJ-NEXT: NumberOfSections: 2
38 ; OBJ-NEXT: TimeStamp: None (0x0)
39 ; OBJ32-NEXT: SymbolTableOffset: 0x13C
40 ; OBJ64-NEXT: SymbolTableOffset: 0x1B8
41 ; OBJ-NEXT: SymbolTableEntries: 27
42 ; OBJ-NEXT: OptionalHeaderSize: 0x0
43 ; OBJ-NEXT: Flags: 0x0
45 ; OBJ-NEXT: Sections [
48 ; OBJ-NEXT: Name: .text
49 ; OBJ-NEXT: PhysicalAddress: 0x0
50 ; OBJ-NEXT: VirtualAddress: 0x0
51 ; OBJ-NEXT: Size: 0x40
52 ; OBJ32-NEXT: RawDataOffset: 0x64
53 ; OBJ32-NEXT: RelocationPointer: 0xEC
54 ; OBJ64-NEXT: RawDataOffset: 0xA8
55 ; OBJ64-NEXT: RelocationPointer: 0x148
56 ; OBJ-NEXT: LineNumberPointer: 0x0
57 ; OBJ-NEXT: NumberOfRelocations: 3
58 ; OBJ-NEXT: NumberOfLineNumbers: 0
59 ; OBJ-NEXT: Type: STYP_TEXT (0x20)
63 ; OBJ-NEXT: Name: .data
64 ; OBJ-NEXT: PhysicalAddress: 0x40
65 ; OBJ-NEXT: VirtualAddress: 0x40
66 ; OBJ32-NEXT: Size: 0x48
67 ; OBJ32-NEXT: RawDataOffset: 0xA4
68 ; OBJ32-NEXT: RelocationPointer: 0x10A
69 ; OBJ64-NEXT: Size: 0x60
70 ; OBJ64-NEXT: RawDataOffset: 0xE8
71 ; OBJ64-NEXT: RelocationPointer: 0x172
72 ; OBJ-NEXT: LineNumberPointer: 0x0
73 ; OBJ-NEXT: NumberOfRelocations: 5
74 ; OBJ-NEXT: NumberOfLineNumbers: 0
75 ; OBJ-NEXT: Type: STYP_DATA (0x40)
79 ; RELOC: Relocations [
80 ; RELOC-NEXT: Section (index: 1) .text {
81 ; RELOC-NEXT: Relocation {
82 ; RELOC-NEXT: Virtual Address: 0x10
83 ; RELOC-NEXT: Symbol: .bar (1)
84 ; RELOC-NEXT: IsSigned: Yes
85 ; RELOC-NEXT: FixupBitValue: 0
86 ; RELOC-NEXT: Length: 26
87 ; RELOC-NEXT: Type: R_RBR (0x1A)
89 ; RELOC-NEXT: Relocation {
90 ; RELOC-NEXT: Virtual Address: 0x1A
91 ; RELOC-NEXT: Symbol: globalA (23)
92 ; RELOC-NEXT: IsSigned: No
93 ; RELOC-NEXT: FixupBitValue: 0
94 ; RELOC-NEXT: Length: 16
95 ; RELOC-NEXT: Type: R_TOC (0x3)
97 ; RELOC-NEXT: Relocation {
98 ; RELOC-NEXT: Virtual Address: 0x1E
99 ; RELOC-NEXT: Symbol: globalB (25)
100 ; RELOC-NEXT: IsSigned: No
101 ; RELOC-NEXT: FixupBitValue: 0
102 ; RELOC-NEXT: Length: 16
103 ; RELOC-NEXT: Type: R_TOC (0x3)
106 ; RELOC-NEXT: Section (index: 2) .data {
107 ; RELOC-NEXT: Relocation {
108 ; RELOC-NEXT: Virtual Address: 0x70
109 ; RELOC-NEXT: Symbol: arr (15)
110 ; RELOC-NEXT: IsSigned: No
111 ; RELOC-NEXT: FixupBitValue: 0
112 ; RELOC32-NEXT: Length: 32
113 ; RELOC64-NEXT: Length: 64
114 ; RELOC-NEXT: Type: R_POS (0x0)
116 ; RELOC-NEXT: Relocation {
117 ; RELOC32-NEXT: Virtual Address: 0x74
118 ; RELOC64-NEXT: Virtual Address: 0x78
119 ; RELOC-NEXT: Symbol: .foo (7)
120 ; RELOC-NEXT: IsSigned: No
121 ; RELOC-NEXT: FixupBitValue: 0
122 ; RELOC32-NEXT: Length: 32
123 ; RELOC64-NEXT: Length: 64
124 ; RELOC-NEXT: Type: R_POS (0x0)
126 ; RELOC-NEXT: Relocation {
127 ; RELOC32-NEXT: Virtual Address: 0x78
128 ; RELOC64-NEXT: Virtual Address: 0x80
129 ; RELOC-NEXT: Symbol: TOC (21)
130 ; RELOC-NEXT: IsSigned: No
131 ; RELOC-NEXT: FixupBitValue: 0
132 ; RELOC32-NEXT: Length: 32
133 ; RELOC64-NEXT: Length: 64
134 ; RELOC-NEXT: Type: R_POS (0x0)
136 ; RELOC-NEXT: Relocation {
137 ; RELOC32-NEXT: Virtual Address: 0x80
138 ; RELOC64-NEXT: Virtual Address: 0x90
139 ; RELOC-NEXT: Symbol: globalA (11)
140 ; RELOC-NEXT: IsSigned: No
141 ; RELOC-NEXT: FixupBitValue: 0
142 ; RELOC32-NEXT: Length: 32
143 ; RELOC64-NEXT: Length: 64
144 ; RELOC-NEXT: Type: R_POS (0x0)
146 ; RELOC-NEXT: Relocation {
147 ; RELOC32-NEXT: Virtual Address: 0x84
148 ; RELOC64-NEXT: Virtual Address: 0x98
149 ; RELOC-NEXT: Symbol: globalB (13)
150 ; RELOC-NEXT: IsSigned: No
151 ; RELOC-NEXT: FixupBitValue: 0
152 ; RELOC32-NEXT: Length: 32
153 ; RELOC64-NEXT: Length: 64
154 ; RELOC-NEXT: Type: R_POS (0x0)
162 ; SYM-NEXT: Name: <stdin>
163 ; SYM-NEXT: Value (SymbolTableIndex): 0x0
164 ; SYM-NEXT: Section: N_DEBUG
165 ; SYM-NEXT: Source Language ID: TB_CPLUSPLUS (0x9)
166 ; SYM32-NEXT: CPU Version ID: TCPU_COM (0x3)
167 ; SYM64-NEXT: CPU Version ID: TCPU_PPC64 (0x2)
168 ; SYM-NEXT: StorageClass: C_FILE (0x67)
169 ; SYM-NEXT: NumberOfAuxEntries: 0
172 ; SYM-NEXT: Index: [[#INDX:]]
173 ; SYM-NEXT: Name: .bar
174 ; SYM-NEXT: Value (RelocatableAddress): 0x0
175 ; SYM-NEXT: Section: N_UNDEF
176 ; SYM-NEXT: Type: 0x0
177 ; SYM-NEXT: StorageClass: C_EXT (0x2)
178 ; SYM-NEXT: NumberOfAuxEntries: 1
179 ; SYM-NEXT: CSECT Auxiliary Entry {
180 ; SYM-NEXT: Index: [[#INDX+1]]
181 ; SYM-NEXT: SectionLen: 0
182 ; SYM-NEXT: ParameterHashIndex: 0x0
183 ; SYM-NEXT: TypeChkSectNum: 0x0
184 ; SYM-NEXT: SymbolAlignmentLog2: 0
185 ; SYM-NEXT: SymbolType: XTY_ER (0x0)
186 ; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
187 ; SYM32-NEXT: StabInfoIndex: 0x0
188 ; SYM32-NEXT: StabSectNum: 0x0
189 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
193 ; SYM-NEXT: Index: [[#INDX+2]]
194 ; SYM-NEXT: Name: bar
195 ; SYM-NEXT: Value (RelocatableAddress): 0x0
196 ; SYM-NEXT: Section: N_UNDEF
197 ; SYM-NEXT: Type: 0x0
198 ; SYM-NEXT: StorageClass: C_EXT (0x2)
199 ; SYM-NEXT: NumberOfAuxEntries: 1
200 ; SYM-NEXT: CSECT Auxiliary Entry {
201 ; SYM-NEXT: Index: [[#INDX+3]]
202 ; SYM-NEXT: SectionLen: 0
203 ; SYM-NEXT: ParameterHashIndex: 0x0
204 ; SYM-NEXT: TypeChkSectNum: 0x0
205 ; SYM-NEXT: SymbolAlignmentLog2: 0
206 ; SYM-NEXT: SymbolType: XTY_ER (0x0)
207 ; SYM-NEXT: StorageMappingClass: XMC_DS (0xA)
208 ; SYM32-NEXT: StabInfoIndex: 0x0
209 ; SYM32-NEXT: StabSectNum: 0x0
210 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
214 ; SYM-NEXT: Index: [[#INDX+4]]
216 ; SYM-NEXT: Value (RelocatableAddress): 0x0
217 ; SYM-NEXT: Section: .text
218 ; SYM-NEXT: Type: 0x0
219 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
220 ; SYM-NEXT: NumberOfAuxEntries: 1
221 ; SYM-NEXT: CSECT Auxiliary Entry {
222 ; SYM-NEXT: Index: [[#INDX+5]]
223 ; SYM-NEXT: SectionLen: 64
224 ; SYM-NEXT: ParameterHashIndex: 0x0
225 ; SYM-NEXT: TypeChkSectNum: 0x0
226 ; SYM-NEXT: SymbolAlignmentLog2: 5
227 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
228 ; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
229 ; SYM32-NEXT: StabInfoIndex: 0x0
230 ; SYM32-NEXT: StabSectNum: 0x0
231 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
235 ; SYM-NEXT: Index: [[#INDX+6]]
236 ; SYM-NEXT: Name: .foo
237 ; SYM-NEXT: Value (RelocatableAddress): 0x0
238 ; SYM-NEXT: Section: .text
239 ; SYM-NEXT: Type: 0x0
240 ; SYM-NEXT: StorageClass: C_EXT (0x2)
241 ; SYM-NEXT: NumberOfAuxEntries: 1
242 ; SYM-NEXT: CSECT Auxiliary Entry {
243 ; SYM-NEXT: Index: [[#INDX+7]]
244 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+4]]
245 ; SYM-NEXT: ParameterHashIndex: 0x0
246 ; SYM-NEXT: TypeChkSectNum: 0x0
247 ; SYM-NEXT: SymbolAlignmentLog2: 0
248 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
249 ; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
250 ; SYM32-NEXT: StabInfoIndex: 0x0
251 ; SYM32-NEXT: StabSectNum: 0x0
252 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
256 ; SYM-NEXT: Index: [[#INDX+8]]
257 ; SYM-NEXT: Name: .data
258 ; SYM-NEXT: Value (RelocatableAddress): 0x40
259 ; SYM-NEXT: Section: .data
260 ; SYM-NEXT: Type: 0x0
261 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
262 ; SYM-NEXT: NumberOfAuxEntries: 1
263 ; SYM-NEXT: CSECT Auxiliary Entry {
264 ; SYM-NEXT: Index: [[#INDX+9]]
265 ; SYM32-NEXT: SectionLen: 52
266 ; SYM64-NEXT: SectionLen: 56
267 ; SYM-NEXT: ParameterHashIndex: 0x0
268 ; SYM-NEXT: TypeChkSectNum: 0x0
269 ; SYM32-NEXT: SymbolAlignmentLog2: 2
270 ; SYM64-NEXT: SymbolAlignmentLog2: 3
271 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
272 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
273 ; SYM32-NEXT: StabInfoIndex: 0x0
274 ; SYM32-NEXT: StabSectNum: 0x0
275 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
279 ; SYM-NEXT: Index: [[#INDX+10]]
280 ; SYM-NEXT: Name: globalA
281 ; SYM-NEXT: Value (RelocatableAddress): 0x40
282 ; SYM-NEXT: Section: .data
283 ; SYM-NEXT: Type: 0x0
284 ; SYM-NEXT: StorageClass: C_EXT (0x2)
285 ; SYM-NEXT: NumberOfAuxEntries: 1
286 ; SYM-NEXT: CSECT Auxiliary Entry {
287 ; SYM-NEXT: Index: [[#INDX+11]]
288 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+8]]
289 ; SYM-NEXT: ParameterHashIndex: 0x0
290 ; SYM-NEXT: TypeChkSectNum: 0x0
291 ; SYM-NEXT: SymbolAlignmentLog2: 0
292 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
293 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
294 ; SYM32-NEXT: StabInfoIndex: 0x0
295 ; SYM32-NEXT: StabSectNum: 0x0
296 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
300 ; SYM-NEXT: Index: [[#INDX+12]]
301 ; SYM-NEXT: Name: globalB
302 ; SYM-NEXT: Value (RelocatableAddress): 0x44
303 ; SYM-NEXT: Section: .data
304 ; SYM-NEXT: Type: 0x0
305 ; SYM-NEXT: StorageClass: C_EXT (0x2)
306 ; SYM-NEXT: NumberOfAuxEntries: 1
307 ; SYM-NEXT: CSECT Auxiliary Entry {
308 ; SYM-NEXT: Index: [[#INDX+13]]
309 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+8]]
310 ; SYM-NEXT: ParameterHashIndex: 0x0
311 ; SYM-NEXT: TypeChkSectNum: 0x0
312 ; SYM-NEXT: SymbolAlignmentLog2: 0
313 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
314 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
315 ; SYM32-NEXT: StabInfoIndex: 0x0
316 ; SYM32-NEXT: StabSectNum: 0x0
317 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
321 ; SYM-NEXT: Index: [[#INDX+14]]
322 ; SYM-NEXT: Name: arr
323 ; SYM-NEXT: Value (RelocatableAddress): 0x48
324 ; SYM-NEXT: Section: .data
325 ; SYM-NEXT: Type: 0x0
326 ; SYM-NEXT: StorageClass: C_EXT (0x2)
327 ; SYM-NEXT: NumberOfAuxEntries: 1
328 ; SYM-NEXT: CSECT Auxiliary Entry {
329 ; SYM-NEXT: Index: [[#INDX+15]]
330 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+8]]
331 ; SYM-NEXT: ParameterHashIndex: 0x0
332 ; SYM-NEXT: TypeChkSectNum: 0x0
333 ; SYM-NEXT: SymbolAlignmentLog2: 0
334 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
335 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
336 ; SYM32-NEXT: StabInfoIndex: 0x0
337 ; SYM32-NEXT: StabSectNum: 0x0
338 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
342 ; SYM-NEXT: Index: [[#INDX+16]]
344 ; SYM-NEXT: Value (RelocatableAddress): 0x70
345 ; SYM-NEXT: Section: .data
346 ; SYM-NEXT: Type: 0x0
347 ; SYM-NEXT: StorageClass: C_EXT (0x2)
348 ; SYM-NEXT: NumberOfAuxEntries: 1
349 ; SYM-NEXT: CSECT Auxiliary Entry {
350 ; SYM-NEXT: Index: [[#INDX+17]]
351 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+8]]
352 ; SYM-NEXT: ParameterHashIndex: 0x0
353 ; SYM-NEXT: TypeChkSectNum: 0x0
354 ; SYM-NEXT: SymbolAlignmentLog2: 0
355 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
356 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
357 ; SYM32-NEXT: StabInfoIndex: 0x0
358 ; SYM32-NEXT: StabSectNum: 0x0
359 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
363 ; SYM-NEXT: Index: [[#INDX+18]]
364 ; SYM-NEXT: Name: foo
365 ; SYM32-NEXT: Value (RelocatableAddress): 0x74
366 ; SYM64-NEXT: Value (RelocatableAddress): 0x78
367 ; SYM-NEXT: Section: .data
368 ; SYM-NEXT: Type: 0x0
369 ; SYM-NEXT: StorageClass: C_EXT (0x2)
370 ; SYM-NEXT: NumberOfAuxEntries: 1
371 ; SYM-NEXT: CSECT Auxiliary Entry {
372 ; SYM-NEXT: Index: [[#INDX+19]]
373 ; SYM32-NEXT: SectionLen: 12
374 ; SYM64-NEXT: SectionLen: 24
375 ; SYM-NEXT: ParameterHashIndex: 0x0
376 ; SYM-NEXT: TypeChkSectNum: 0x0
377 ; SYM32-NEXT: SymbolAlignmentLog2: 2
378 ; SYM64-NEXT: SymbolAlignmentLog2: 3
379 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
380 ; SYM-NEXT: StorageMappingClass: XMC_DS (0xA)
381 ; SYM32-NEXT: StabInfoIndex: 0x0
382 ; SYM32-NEXT: StabSectNum: 0x0
383 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
387 ; SYM-NEXT: Index: [[#INDX+20]]
388 ; SYM-NEXT: Name: TOC
389 ; SYM32-NEXT: Value (RelocatableAddress): 0x80
390 ; SYM64-NEXT: Value (RelocatableAddress): 0x90
391 ; SYM-NEXT: Section: .data
392 ; SYM-NEXT: Type: 0x0
393 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
394 ; SYM-NEXT: NumberOfAuxEntries: 1
395 ; SYM-NEXT: CSECT Auxiliary Entry {
396 ; SYM-NEXT: Index: [[#INDX+21]]
397 ; SYM-NEXT: SectionLen: 0
398 ; SYM-NEXT: ParameterHashIndex: 0x0
399 ; SYM-NEXT: TypeChkSectNum: 0x0
400 ; SYM-NEXT: SymbolAlignmentLog2: 2
401 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
402 ; SYM-NEXT: StorageMappingClass: XMC_TC0 (0xF)
403 ; SYM32-NEXT: StabInfoIndex: 0x0
404 ; SYM32-NEXT: StabSectNum: 0x0
405 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
409 ; SYM-NEXT: Index: [[#INDX+22]]
410 ; SYM-NEXT: Name: globalA
411 ; SYM32-NEXT: Value (RelocatableAddress): 0x80
412 ; SYM64-NEXT: Value (RelocatableAddress): 0x90
413 ; SYM-NEXT: Section: .data
414 ; SYM-NEXT: Type: 0x0
415 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
416 ; SYM-NEXT: NumberOfAuxEntries: 1
417 ; SYM-NEXT: CSECT Auxiliary Entry {
418 ; SYM-NEXT: Index: [[#INDX+23]]
419 ; SYM32-NEXT: SectionLen: 4
420 ; SYM64-NEXT: SectionLen: 8
421 ; SYM-NEXT: ParameterHashIndex: 0x0
422 ; SYM-NEXT: TypeChkSectNum: 0x0
423 ; SYM32-NEXT: SymbolAlignmentLog2: 2
424 ; SYM64-NEXT: SymbolAlignmentLog2: 3
425 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
426 ; SYM-NEXT: StorageMappingClass: XMC_TC (0x3)
427 ; SYM32-NEXT: StabInfoIndex: 0x0
428 ; SYM32-NEXT: StabSectNum: 0x0
429 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
433 ; SYM-NEXT: Index: [[#INDX+24]]
434 ; SYM-NEXT: Name: globalB
435 ; SYM32-NEXT: Value (RelocatableAddress): 0x84
436 ; SYM64-NEXT: Value (RelocatableAddress): 0x98
437 ; SYM-NEXT: Section: .data
438 ; SYM-NEXT: Type: 0x0
439 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
440 ; SYM-NEXT: NumberOfAuxEntries: 1
441 ; SYM-NEXT: CSECT Auxiliary Entry {
442 ; SYM-NEXT: Index: [[#INDX+25]]
443 ; SYM32-NEXT: SectionLen: 4
444 ; SYM64-NEXT: SectionLen: 8
445 ; SYM-NEXT: ParameterHashIndex: 0x0
446 ; SYM-NEXT: TypeChkSectNum: 0x0
447 ; SYM32-NEXT: SymbolAlignmentLog2: 2
448 ; SYM64-NEXT: SymbolAlignmentLog2: 3
449 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
450 ; SYM-NEXT: StorageMappingClass: XMC_TC (0x3)
451 ; SYM32-NEXT: StabInfoIndex: 0x0
452 ; SYM32-NEXT: StabSectNum: 0x0
453 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
459 ; DIS: {{.*}}aix-xcoff-reloc.ll.tmp.o: file format aixcoff-rs6000
460 ; DIS: Disassembly of section .text:
461 ; DIS: 00000000 <.foo>:
462 ; DIS-NEXT: 0: 7c 08 02 a6 mflr 0
463 ; DIS-NEXT: 4: 94 21 ff c0 stwu 1, -64(1)
464 ; DIS-NEXT: 8: 38 60 00 01 li 3, 1
465 ; DIS-NEXT: c: 90 01 00 48 stw 0, 72(1)
466 ; DIS-NEXT: 10: 4b ff ff f1 bl 0x0
467 ; DIS-NEXT: 14: 60 00 00 00 nop
468 ; DIS-NEXT: 18: 80 82 00 00 lwz 4, 0(2)
469 ; DIS-NEXT: 1c: 80 a2 00 04 lwz 5, 4(2)
470 ; DIS-NEXT: 20: 80 84 00 00 lwz 4, 0(4)
471 ; DIS-NEXT: 24: 80 a5 00 00 lwz 5, 0(5)
472 ; DIS-NEXT: 28: 7c 63 22 14 add 3, 3, 4
473 ; DIS-NEXT: 2c: 7c 63 2a 14 add 3, 3, 5
474 ; DIS-NEXT: 30: 38 21 00 40 addi 1, 1, 64
475 ; DIS-NEXT: 34: 80 01 00 08 lwz 0, 8(1)
476 ; DIS-NEXT: 38: 7c 08 03 a6 mtlr 0
477 ; DIS-NEXT: 3c: 4e 80 00 20 blr
479 ; DIS: Disassembly of section .data:
480 ; DIS: 00000040 <globalA>:
481 ; DIS-NEXT: 40: 00 00 00 01 <unknown>
482 ; DIS: 00000044 <globalB>:
483 ; DIS-NEXT: 44: 00 00 00 02 <unknown>
484 ; DIS: 00000048 <arr>:
485 ; DIS-NEXT: 48: 00 00 00 03 <unknown>
488 ; DIS-NEXT: 70: 00 00 00 58 <unknown>
489 ; DIS: 00000074 <foo>:
490 ; DIS-NEXT: 74: 00 00 00 00 <unknown>
491 ; DIS-NEXT: 78: 00 00 00 80 <unknown>
492 ; DIS-NEXT: 7c: 00 00 00 00 <unknown>
493 ; DIS: 00000080 <globalA>:
494 ; DIS-NEXT: 80: 00 00 00 40 <unknown>
495 ; DIS: 00000084 <globalB>:
496 ; DIS-NEXT: 84: 00 00 00 44 <unknown>
498 ; DIS_REL: {{.*}}aix-xcoff-reloc.ll.tmp.o: file format aixcoff-rs6000
499 ; DIS_REL: RELOCATION RECORDS FOR [.text]:
500 ; DIS_REL-NEXT: OFFSET TYPE VALUE
501 ; DIS_REL-NEXT: 00000010 R_RBR .bar
502 ; DIS_REL-NEXT: 0000001a R_TOC globalA
503 ; DIS_REL-NEXT: 0000001e R_TOC globalB
504 ; DIS_REL: RELOCATION RECORDS FOR [.data]:
505 ; DIS_REL-NEXT: OFFSET TYPE VALUE
506 ; DIS_REL-NEXT: 00000030 R_POS arr
507 ; DIS_REL-NEXT: 00000034 R_POS .foo
508 ; DIS_REL-NEXT: 00000038 R_POS TOC
509 ; DIS_REL-NEXT: 00000040 R_POS globalA
510 ; DIS_REL-NEXT: 00000044 R_POS globalB
512 ; DIS64: Disassembly of section .text:
513 ; DIS64: 0000000000000000 <.foo>:
514 ; DIS64-NEXT: 0: 7c 08 02 a6 mflr 0
515 ; DIS64-NEXT: 4: f8 21 ff 91 stdu 1, -112(1)
516 ; DIS64-NEXT: 8: 38 60 00 01 li 3, 1
517 ; DIS64-NEXT: c: f8 01 00 80 std 0, 128(1)
518 ; DIS64-NEXT: 10: 4b ff ff f1 bl 0x0 <.foo>
519 ; DIS64-NEXT: 14: 60 00 00 00 nop
520 ; DIS64-NEXT: 18: e8 82 00 00 ld 4, 0(2)
521 ; DIS64-NEXT: 1c: e8 a2 00 08 ld 5, 8(2)
522 ; DIS64-NEXT: 20: 80 84 00 00 lwz 4, 0(4)
523 ; DIS64-NEXT: 24: 80 a5 00 00 lwz 5, 0(5)
524 ; DIS64-NEXT: 28: 7c 63 22 14 add 3, 3, 4
525 ; DIS64-NEXT: 2c: 7c 63 2a 14 add 3, 3, 5
526 ; DIS64-NEXT: 30: 38 21 00 70 addi 1, 1, 112
527 ; DIS64-NEXT: 34: e8 01 00 10 ld 0, 16(1)
528 ; DIS64-NEXT: 38: 7c 08 03 a6 mtlr 0
529 ; DIS64-NEXT: 3c: 4e 80 00 20 blr
531 ; DIS64: Disassembly of section .data:
532 ; DIS64: 0000000000000040 <globalA>:
533 ; DIS64-NEXT: 40: 00 00 00 01 <unknown>
534 ; DIS64: 0000000000000044 <globalB>:
535 ; DIS64-NEXT: 44: 00 00 00 02 <unknown>
536 ; DIS64: 0000000000000048 <arr>:
537 ; DIS64-NEXT: 48: 00 00 00 03 <unknown>
539 ; DIS64: 0000000000000070 <p>:
540 ; DIS64-NEXT: 70: 00 00 00 00 <unknown>
541 ; DIS64-NEXT: 74: 00 00 00 58 <unknown>
542 ; DIS64: 0000000000000078 <foo>:
544 ; DIS64-NEXT: 84: 00 00 00 90 <unknown>
546 ; DIS64: 0000000000000090 <globalA>:
547 ; DIS64-NEXT: 90: 00 00 00 00 <unknown>
548 ; DIS64-NEXT: 94: 00 00 00 40 <unknown>
549 ; DIS64: 0000000000000098 <globalB>:
550 ; DIS64-NEXT: 98: 00 00 00 00 <unknown>
551 ; DIS64-NEXT: 9c: 00 00 00 44 <unknown>
553 ; DIS_REL64: RELOCATION RECORDS FOR [.text]:
554 ; DIS_REL64-NEXT: OFFSET TYPE VALUE
555 ; DIS_REL64-NEXT: 0000000000000010 R_RBR .bar
556 ; DIS_REL64-NEXT: 000000000000001a R_TOC globalA
557 ; DIS_REL64-NEXT: 000000000000001e R_TOC globalB
559 ; DIS_REL64: RELOCATION RECORDS FOR [.data]:
560 ; DIS_REL64-NEXT: OFFSET TYPE VALUE
561 ; DIS_REL64-NEXT: 0000000000000030 R_POS arr
562 ; DIS_REL64-NEXT: 0000000000000038 R_POS .foo
563 ; DIS_REL64-NEXT: 0000000000000040 R_POS TOC
564 ; DIS_REL64-NEXT: 0000000000000050 R_POS globalA
565 ; DIS_REL64-NEXT: 0000000000000058 R_POS globalB