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 i32* bitcast (i8* getelementptr (i8, i8* bitcast (<{ i32, [9 x i32] }>* @arr to i8*), i64 16) to i32*), align 4
24 %call = call i32 @bar(i32 1)
25 %0 = load i32, i32* @globalA, align 4
26 %add = add nsw i32 %call, %0
27 %1 = load i32, i32* @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: .file
163 ; SYM-NEXT: Value (SymbolTableIndex): 0x0
164 ; SYM-NEXT: Section: N_DEBUG
165 ; SYM-NEXT: Source Language ID: TB_C (0x0)
166 ; SYM-NEXT: CPU Version ID: 0x0
167 ; SYM-NEXT: StorageClass: C_FILE (0x67)
168 ; SYM-NEXT: NumberOfAuxEntries: 0
171 ; SYM-NEXT: Index: [[#INDX:]]
172 ; SYM-NEXT: Name: .bar
173 ; SYM-NEXT: Value (RelocatableAddress): 0x0
174 ; SYM-NEXT: Section: N_UNDEF
175 ; SYM-NEXT: Type: 0x0
176 ; SYM-NEXT: StorageClass: C_EXT (0x2)
177 ; SYM-NEXT: NumberOfAuxEntries: 1
178 ; SYM-NEXT: CSECT Auxiliary Entry {
179 ; SYM-NEXT: Index: [[#INDX+1]]
180 ; SYM-NEXT: SectionLen: 0
181 ; SYM-NEXT: ParameterHashIndex: 0x0
182 ; SYM-NEXT: TypeChkSectNum: 0x0
183 ; SYM-NEXT: SymbolAlignmentLog2: 0
184 ; SYM-NEXT: SymbolType: XTY_ER (0x0)
185 ; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
186 ; SYM32-NEXT: StabInfoIndex: 0x0
187 ; SYM32-NEXT: StabSectNum: 0x0
188 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
192 ; SYM-NEXT: Index: [[#INDX+2]]
193 ; SYM-NEXT: Name: bar
194 ; SYM-NEXT: Value (RelocatableAddress): 0x0
195 ; SYM-NEXT: Section: N_UNDEF
196 ; SYM-NEXT: Type: 0x0
197 ; SYM-NEXT: StorageClass: C_EXT (0x2)
198 ; SYM-NEXT: NumberOfAuxEntries: 1
199 ; SYM-NEXT: CSECT Auxiliary Entry {
200 ; SYM-NEXT: Index: [[#INDX+3]]
201 ; SYM-NEXT: SectionLen: 0
202 ; SYM-NEXT: ParameterHashIndex: 0x0
203 ; SYM-NEXT: TypeChkSectNum: 0x0
204 ; SYM-NEXT: SymbolAlignmentLog2: 0
205 ; SYM-NEXT: SymbolType: XTY_ER (0x0)
206 ; SYM-NEXT: StorageMappingClass: XMC_DS (0xA)
207 ; SYM32-NEXT: StabInfoIndex: 0x0
208 ; SYM32-NEXT: StabSectNum: 0x0
209 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
213 ; SYM-NEXT: Index: [[#INDX+4]]
214 ; SYM-NEXT: Name: .text
215 ; SYM-NEXT: Value (RelocatableAddress): 0x0
216 ; SYM-NEXT: Section: .text
217 ; SYM-NEXT: Type: 0x0
218 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
219 ; SYM-NEXT: NumberOfAuxEntries: 1
220 ; SYM-NEXT: CSECT Auxiliary Entry {
221 ; SYM-NEXT: Index: [[#INDX+5]]
222 ; SYM-NEXT: SectionLen: 64
223 ; SYM-NEXT: ParameterHashIndex: 0x0
224 ; SYM-NEXT: TypeChkSectNum: 0x0
225 ; SYM-NEXT: SymbolAlignmentLog2: 4
226 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
227 ; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
228 ; SYM32-NEXT: StabInfoIndex: 0x0
229 ; SYM32-NEXT: StabSectNum: 0x0
230 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
234 ; SYM-NEXT: Index: [[#INDX+6]]
235 ; SYM-NEXT: Name: .foo
236 ; SYM-NEXT: Value (RelocatableAddress): 0x0
237 ; SYM-NEXT: Section: .text
238 ; SYM-NEXT: Type: 0x0
239 ; SYM-NEXT: StorageClass: C_EXT (0x2)
240 ; SYM-NEXT: NumberOfAuxEntries: 1
241 ; SYM-NEXT: CSECT Auxiliary Entry {
242 ; SYM-NEXT: Index: [[#INDX+7]]
243 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+4]]
244 ; SYM-NEXT: ParameterHashIndex: 0x0
245 ; SYM-NEXT: TypeChkSectNum: 0x0
246 ; SYM-NEXT: SymbolAlignmentLog2: 0
247 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
248 ; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
249 ; SYM32-NEXT: StabInfoIndex: 0x0
250 ; SYM32-NEXT: StabSectNum: 0x0
251 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
255 ; SYM-NEXT: Index: [[#INDX+8]]
256 ; SYM-NEXT: Name: .data
257 ; SYM-NEXT: Value (RelocatableAddress): 0x40
258 ; SYM-NEXT: Section: .data
259 ; SYM-NEXT: Type: 0x0
260 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
261 ; SYM-NEXT: NumberOfAuxEntries: 1
262 ; SYM-NEXT: CSECT Auxiliary Entry {
263 ; SYM-NEXT: Index: [[#INDX+9]]
264 ; SYM32-NEXT: SectionLen: 52
265 ; SYM64-NEXT: SectionLen: 56
266 ; SYM-NEXT: ParameterHashIndex: 0x0
267 ; SYM-NEXT: TypeChkSectNum: 0x0
268 ; SYM32-NEXT: SymbolAlignmentLog2: 2
269 ; SYM64-NEXT: SymbolAlignmentLog2: 3
270 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
271 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
272 ; SYM32-NEXT: StabInfoIndex: 0x0
273 ; SYM32-NEXT: StabSectNum: 0x0
274 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
278 ; SYM-NEXT: Index: [[#INDX+10]]
279 ; SYM-NEXT: Name: globalA
280 ; SYM-NEXT: Value (RelocatableAddress): 0x40
281 ; SYM-NEXT: Section: .data
282 ; SYM-NEXT: Type: 0x0
283 ; SYM-NEXT: StorageClass: C_EXT (0x2)
284 ; SYM-NEXT: NumberOfAuxEntries: 1
285 ; SYM-NEXT: CSECT Auxiliary Entry {
286 ; SYM-NEXT: Index: [[#INDX+11]]
287 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+8]]
288 ; SYM-NEXT: ParameterHashIndex: 0x0
289 ; SYM-NEXT: TypeChkSectNum: 0x0
290 ; SYM-NEXT: SymbolAlignmentLog2: 0
291 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
292 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
293 ; SYM32-NEXT: StabInfoIndex: 0x0
294 ; SYM32-NEXT: StabSectNum: 0x0
295 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
299 ; SYM-NEXT: Index: [[#INDX+12]]
300 ; SYM-NEXT: Name: globalB
301 ; SYM-NEXT: Value (RelocatableAddress): 0x44
302 ; SYM-NEXT: Section: .data
303 ; SYM-NEXT: Type: 0x0
304 ; SYM-NEXT: StorageClass: C_EXT (0x2)
305 ; SYM-NEXT: NumberOfAuxEntries: 1
306 ; SYM-NEXT: CSECT Auxiliary Entry {
307 ; SYM-NEXT: Index: [[#INDX+13]]
308 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+8]]
309 ; SYM-NEXT: ParameterHashIndex: 0x0
310 ; SYM-NEXT: TypeChkSectNum: 0x0
311 ; SYM-NEXT: SymbolAlignmentLog2: 0
312 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
313 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
314 ; SYM32-NEXT: StabInfoIndex: 0x0
315 ; SYM32-NEXT: StabSectNum: 0x0
316 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
320 ; SYM-NEXT: Index: [[#INDX+14]]
321 ; SYM-NEXT: Name: arr
322 ; SYM-NEXT: Value (RelocatableAddress): 0x48
323 ; SYM-NEXT: Section: .data
324 ; SYM-NEXT: Type: 0x0
325 ; SYM-NEXT: StorageClass: C_EXT (0x2)
326 ; SYM-NEXT: NumberOfAuxEntries: 1
327 ; SYM-NEXT: CSECT Auxiliary Entry {
328 ; SYM-NEXT: Index: [[#INDX+15]]
329 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+8]]
330 ; SYM-NEXT: ParameterHashIndex: 0x0
331 ; SYM-NEXT: TypeChkSectNum: 0x0
332 ; SYM-NEXT: SymbolAlignmentLog2: 0
333 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
334 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
335 ; SYM32-NEXT: StabInfoIndex: 0x0
336 ; SYM32-NEXT: StabSectNum: 0x0
337 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
341 ; SYM-NEXT: Index: [[#INDX+16]]
343 ; SYM-NEXT: Value (RelocatableAddress): 0x70
344 ; SYM-NEXT: Section: .data
345 ; SYM-NEXT: Type: 0x0
346 ; SYM-NEXT: StorageClass: C_EXT (0x2)
347 ; SYM-NEXT: NumberOfAuxEntries: 1
348 ; SYM-NEXT: CSECT Auxiliary Entry {
349 ; SYM-NEXT: Index: [[#INDX+17]]
350 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+8]]
351 ; SYM-NEXT: ParameterHashIndex: 0x0
352 ; SYM-NEXT: TypeChkSectNum: 0x0
353 ; SYM-NEXT: SymbolAlignmentLog2: 0
354 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
355 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
356 ; SYM32-NEXT: StabInfoIndex: 0x0
357 ; SYM32-NEXT: StabSectNum: 0x0
358 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
362 ; SYM-NEXT: Index: [[#INDX+18]]
363 ; SYM-NEXT: Name: foo
364 ; SYM32-NEXT: Value (RelocatableAddress): 0x74
365 ; SYM64-NEXT: Value (RelocatableAddress): 0x78
366 ; SYM-NEXT: Section: .data
367 ; SYM-NEXT: Type: 0x0
368 ; SYM-NEXT: StorageClass: C_EXT (0x2)
369 ; SYM-NEXT: NumberOfAuxEntries: 1
370 ; SYM-NEXT: CSECT Auxiliary Entry {
371 ; SYM-NEXT: Index: [[#INDX+19]]
372 ; SYM32-NEXT: SectionLen: 12
373 ; SYM64-NEXT: SectionLen: 24
374 ; SYM-NEXT: ParameterHashIndex: 0x0
375 ; SYM-NEXT: TypeChkSectNum: 0x0
376 ; SYM32-NEXT: SymbolAlignmentLog2: 2
377 ; SYM64-NEXT: SymbolAlignmentLog2: 3
378 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
379 ; SYM-NEXT: StorageMappingClass: XMC_DS (0xA)
380 ; SYM32-NEXT: StabInfoIndex: 0x0
381 ; SYM32-NEXT: StabSectNum: 0x0
382 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
386 ; SYM-NEXT: Index: [[#INDX+20]]
387 ; SYM-NEXT: Name: TOC
388 ; SYM32-NEXT: Value (RelocatableAddress): 0x80
389 ; SYM64-NEXT: Value (RelocatableAddress): 0x90
390 ; SYM-NEXT: Section: .data
391 ; SYM-NEXT: Type: 0x0
392 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
393 ; SYM-NEXT: NumberOfAuxEntries: 1
394 ; SYM-NEXT: CSECT Auxiliary Entry {
395 ; SYM-NEXT: Index: [[#INDX+21]]
396 ; SYM-NEXT: SectionLen: 0
397 ; SYM-NEXT: ParameterHashIndex: 0x0
398 ; SYM-NEXT: TypeChkSectNum: 0x0
399 ; SYM-NEXT: SymbolAlignmentLog2: 2
400 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
401 ; SYM-NEXT: StorageMappingClass: XMC_TC0 (0xF)
402 ; SYM32-NEXT: StabInfoIndex: 0x0
403 ; SYM32-NEXT: StabSectNum: 0x0
404 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
408 ; SYM-NEXT: Index: [[#INDX+22]]
409 ; SYM-NEXT: Name: globalA
410 ; SYM32-NEXT: Value (RelocatableAddress): 0x80
411 ; SYM64-NEXT: Value (RelocatableAddress): 0x90
412 ; SYM-NEXT: Section: .data
413 ; SYM-NEXT: Type: 0x0
414 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
415 ; SYM-NEXT: NumberOfAuxEntries: 1
416 ; SYM-NEXT: CSECT Auxiliary Entry {
417 ; SYM-NEXT: Index: [[#INDX+23]]
418 ; SYM32-NEXT: SectionLen: 4
419 ; SYM64-NEXT: SectionLen: 8
420 ; SYM-NEXT: ParameterHashIndex: 0x0
421 ; SYM-NEXT: TypeChkSectNum: 0x0
422 ; SYM32-NEXT: SymbolAlignmentLog2: 2
423 ; SYM64-NEXT: SymbolAlignmentLog2: 3
424 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
425 ; SYM-NEXT: StorageMappingClass: XMC_TC (0x3)
426 ; SYM32-NEXT: StabInfoIndex: 0x0
427 ; SYM32-NEXT: StabSectNum: 0x0
428 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
432 ; SYM-NEXT: Index: [[#INDX+24]]
433 ; SYM-NEXT: Name: globalB
434 ; SYM32-NEXT: Value (RelocatableAddress): 0x84
435 ; SYM64-NEXT: Value (RelocatableAddress): 0x98
436 ; SYM-NEXT: Section: .data
437 ; SYM-NEXT: Type: 0x0
438 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
439 ; SYM-NEXT: NumberOfAuxEntries: 1
440 ; SYM-NEXT: CSECT Auxiliary Entry {
441 ; SYM-NEXT: Index: [[#INDX+25]]
442 ; SYM32-NEXT: SectionLen: 4
443 ; SYM64-NEXT: SectionLen: 8
444 ; SYM-NEXT: ParameterHashIndex: 0x0
445 ; SYM-NEXT: TypeChkSectNum: 0x0
446 ; SYM32-NEXT: SymbolAlignmentLog2: 2
447 ; SYM64-NEXT: SymbolAlignmentLog2: 3
448 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
449 ; SYM-NEXT: StorageMappingClass: XMC_TC (0x3)
450 ; SYM32-NEXT: StabInfoIndex: 0x0
451 ; SYM32-NEXT: StabSectNum: 0x0
452 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
458 ; DIS: {{.*}}aix-xcoff-reloc.ll.tmp.o: file format aixcoff-rs6000
459 ; DIS: Disassembly of section .text:
460 ; DIS: 00000000 <.foo>:
461 ; DIS-NEXT: 0: 7c 08 02 a6 mflr 0
462 ; DIS-NEXT: 4: 90 01 00 08 stw 0, 8(1)
463 ; DIS-NEXT: 8: 94 21 ff c0 stwu 1, -64(1)
464 ; DIS-NEXT: c: 38 60 00 01 li 3, 1
465 ; DIS-NEXT: 10: 4b ff ff f1 bl 0x0
466 ; DIS-NEXT: 14: 60 00 00 00 nop
467 ; DIS-NEXT: 18: 80 82 00 00 lwz 4, 0(2)
468 ; DIS-NEXT: 1c: 80 a2 00 04 lwz 5, 4(2)
469 ; DIS-NEXT: 20: 80 84 00 00 lwz 4, 0(4)
470 ; DIS-NEXT: 24: 80 a5 00 00 lwz 5, 0(5)
471 ; DIS-NEXT: 28: 7c 63 22 14 add 3, 3, 4
472 ; DIS-NEXT: 2c: 7c 63 2a 14 add 3, 3, 5
473 ; DIS-NEXT: 30: 38 21 00 40 addi 1, 1, 64
474 ; DIS-NEXT: 34: 80 01 00 08 lwz 0, 8(1)
475 ; DIS-NEXT: 38: 7c 08 03 a6 mtlr 0
476 ; DIS-NEXT: 3c: 4e 80 00 20 blr
478 ; DIS: Disassembly of section .data:
479 ; DIS: 00000040 <globalA>:
480 ; DIS-NEXT: 40: 00 00 00 01 <unknown>
481 ; DIS: 00000044 <globalB>:
482 ; DIS-NEXT: 44: 00 00 00 02 <unknown>
483 ; DIS: 00000048 <arr>:
484 ; DIS-NEXT: 48: 00 00 00 03 <unknown>
487 ; DIS-NEXT: 70: 00 00 00 58 <unknown>
488 ; DIS: 00000074 <foo>:
489 ; DIS-NEXT: 74: 00 00 00 00 <unknown>
490 ; DIS-NEXT: 78: 00 00 00 80 <unknown>
491 ; DIS-NEXT: 7c: 00 00 00 00 <unknown>
492 ; DIS: 00000080 <globalA>:
493 ; DIS-NEXT: 80: 00 00 00 40 <unknown>
494 ; DIS: 00000084 <globalB>:
495 ; DIS-NEXT: 84: 00 00 00 44 <unknown>
497 ; DIS_REL: {{.*}}aix-xcoff-reloc.ll.tmp.o: file format aixcoff-rs6000
498 ; DIS_REL: RELOCATION RECORDS FOR [.text]:
499 ; DIS_REL-NEXT: OFFSET TYPE VALUE
500 ; DIS_REL-NEXT: 00000010 R_RBR .bar
501 ; DIS_REL-NEXT: 0000001a R_TOC globalA
502 ; DIS_REL-NEXT: 0000001e R_TOC globalB
503 ; DIS_REL: RELOCATION RECORDS FOR [.data]:
504 ; DIS_REL-NEXT: OFFSET TYPE VALUE
505 ; DIS_REL-NEXT: 00000030 R_POS arr
506 ; DIS_REL-NEXT: 00000034 R_POS .foo
507 ; DIS_REL-NEXT: 00000038 R_POS TOC
508 ; DIS_REL-NEXT: 00000040 R_POS globalA
509 ; DIS_REL-NEXT: 00000044 R_POS globalB
511 ; DIS64: Disassembly of section .text:
512 ; DIS64: 0000000000000000 <.foo>:
513 ; DIS64-NEXT: 0: 7c 08 02 a6 mflr 0
514 ; DIS64-NEXT: 4: f8 01 00 10 std 0, 16(1)
515 ; DIS64-NEXT: 8: f8 21 ff 91 stdu 1, -112(1)
516 ; DIS64-NEXT: c: 38 60 00 01 li 3, 1
517 ; DIS64-NEXT: 10: 4b ff ff f1 bl 0x0 <.foo>
518 ; DIS64-NEXT: 14: 60 00 00 00 nop
519 ; DIS64-NEXT: 18: e8 82 00 00 ld 4, 0(2)
520 ; DIS64-NEXT: 1c: e8 a2 00 08 ld 5, 8(2)
521 ; DIS64-NEXT: 20: 80 84 00 00 lwz 4, 0(4)
522 ; DIS64-NEXT: 24: 80 a5 00 00 lwz 5, 0(5)
523 ; DIS64-NEXT: 28: 7c 63 22 14 add 3, 3, 4
524 ; DIS64-NEXT: 2c: 7c 63 2a 14 add 3, 3, 5
525 ; DIS64-NEXT: 30: 38 21 00 70 addi 1, 1, 112
526 ; DIS64-NEXT: 34: e8 01 00 10 ld 0, 16(1)
527 ; DIS64-NEXT: 38: 7c 08 03 a6 mtlr 0
528 ; DIS64-NEXT: 3c: 4e 80 00 20 blr
530 ; DIS64: Disassembly of section .data:
531 ; DIS64: 0000000000000040 <globalA>:
532 ; DIS64-NEXT: 40: 00 00 00 01 <unknown>
533 ; DIS64: 0000000000000044 <globalB>:
534 ; DIS64-NEXT: 44: 00 00 00 02 <unknown>
535 ; DIS64: 0000000000000048 <arr>:
536 ; DIS64-NEXT: 48: 00 00 00 03 <unknown>
538 ; DIS64: 0000000000000070 <p>:
539 ; DIS64-NEXT: 70: 00 00 00 00 <unknown>
540 ; DIS64-NEXT: 74: 00 00 00 58 <unknown>
541 ; DIS64: 0000000000000078 <foo>:
543 ; DIS64-NEXT: 84: 00 00 00 90 <unknown>
545 ; DIS64: 0000000000000090 <globalA>:
546 ; DIS64-NEXT: 90: 00 00 00 00 <unknown>
547 ; DIS64-NEXT: 94: 00 00 00 40 <unknown>
548 ; DIS64: 0000000000000098 <globalB>:
549 ; DIS64-NEXT: 98: 00 00 00 00 <unknown>
550 ; DIS64-NEXT: 9c: 00 00 00 44 <unknown>
552 ; DIS_REL64: RELOCATION RECORDS FOR [.text]:
553 ; DIS_REL64-NEXT: OFFSET TYPE VALUE
554 ; DIS_REL64-NEXT: 0000000000000010 R_RBR .bar
555 ; DIS_REL64-NEXT: 000000000000001a R_TOC globalA
556 ; DIS_REL64-NEXT: 000000000000001e R_TOC globalB
558 ; DIS_REL64: RELOCATION RECORDS FOR [.data]:
559 ; DIS_REL64-NEXT: OFFSET TYPE VALUE
560 ; DIS_REL64-NEXT: 0000000000000030 R_POS arr
561 ; DIS_REL64-NEXT: 0000000000000038 R_POS .foo
562 ; DIS_REL64-NEXT: 0000000000000040 R_POS TOC
563 ; DIS_REL64-NEXT: 0000000000000050 R_POS globalA
564 ; DIS_REL64-NEXT: 0000000000000058 R_POS globalB