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 -D#NFA=2 --check-prefixes=OBJ,OBJ32 %s
4 ; RUN: llvm-readobj --relocs --expand-relocs %t.o | FileCheck -D#NFA=2 --check-prefixes=RELOC,RELOC32 %s
5 ; RUN: llvm-readobj --syms %t.o | FileCheck -D#NFA=2 --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 -D#NFA=2 --check-prefixes=OBJ,OBJ64 %s
12 ; RUN: llvm-readobj --relocs --expand-relocs %t64.o | FileCheck -D#NFA=2 --check-prefixes=RELOC,RELOC64 %s
13 ; RUN: llvm-readobj --syms %t64.o | FileCheck -D#NFA=2 --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: [[#NFA+25]]
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 ([[#NFA+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 ([[#NFA+21]])
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 ([[#NFA+23]])
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 ([[#NFA+13]])
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 ([[#NFA+5]])
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 ([[#NFA+19]])
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 ([[#NFA+9]])
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 ([[#NFA+11]])
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_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: 2
170 ; SYM-NEXT: File Auxiliary Entry {
172 ; SYM-NEXT: Name: <stdin>
173 ; SYM-NEXT: Type: XFT_FN (0x0)
174 ; SYM64-NEXT: Auxiliary Type: AUX_FILE (0xFC)
176 ; SYM-NEXT: File Auxiliary Entry {
178 ; SYM-NEXT: Name: LLVM
179 ; SYM-NEXT: Type: XFT_CV (0x2)
180 ; SYM64-NEXT: Auxiliary Type: AUX_FILE (0xFC)
184 ; SYM-NEXT: Index: [[#INDX:]]
185 ; SYM-NEXT: Name: .bar
186 ; SYM-NEXT: Value (RelocatableAddress): 0x0
187 ; SYM-NEXT: Section: N_UNDEF
188 ; SYM-NEXT: Type: 0x0
189 ; SYM-NEXT: StorageClass: C_EXT (0x2)
190 ; SYM-NEXT: NumberOfAuxEntries: 1
191 ; SYM-NEXT: CSECT Auxiliary Entry {
192 ; SYM-NEXT: Index: [[#INDX+1]]
193 ; SYM-NEXT: SectionLen: 0
194 ; SYM-NEXT: ParameterHashIndex: 0x0
195 ; SYM-NEXT: TypeChkSectNum: 0x0
196 ; SYM-NEXT: SymbolAlignmentLog2: 0
197 ; SYM-NEXT: SymbolType: XTY_ER (0x0)
198 ; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
199 ; SYM32-NEXT: StabInfoIndex: 0x0
200 ; SYM32-NEXT: StabSectNum: 0x0
201 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
205 ; SYM-NEXT: Index: [[#INDX+2]]
207 ; SYM-NEXT: Value (RelocatableAddress): 0x0
208 ; SYM-NEXT: Section: .text
209 ; SYM-NEXT: Type: 0x0
210 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
211 ; SYM-NEXT: NumberOfAuxEntries: 1
212 ; SYM-NEXT: CSECT Auxiliary Entry {
213 ; SYM-NEXT: Index: [[#INDX+3]]
214 ; SYM-NEXT: SectionLen: 64
215 ; SYM-NEXT: ParameterHashIndex: 0x0
216 ; SYM-NEXT: TypeChkSectNum: 0x0
217 ; SYM-NEXT: SymbolAlignmentLog2: 5
218 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
219 ; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
220 ; SYM32-NEXT: StabInfoIndex: 0x0
221 ; SYM32-NEXT: StabSectNum: 0x0
222 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
226 ; SYM-NEXT: Index: [[#INDX+4]]
227 ; SYM-NEXT: Name: .foo
228 ; SYM-NEXT: Value (RelocatableAddress): 0x0
229 ; SYM-NEXT: Section: .text
230 ; SYM-NEXT: Type: 0x0
231 ; SYM-NEXT: StorageClass: C_EXT (0x2)
232 ; SYM-NEXT: NumberOfAuxEntries: 1
233 ; SYM-NEXT: CSECT Auxiliary Entry {
234 ; SYM-NEXT: Index: [[#INDX+5]]
235 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+2]]
236 ; SYM-NEXT: ParameterHashIndex: 0x0
237 ; SYM-NEXT: TypeChkSectNum: 0x0
238 ; SYM-NEXT: SymbolAlignmentLog2: 0
239 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
240 ; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
241 ; SYM32-NEXT: StabInfoIndex: 0x0
242 ; SYM32-NEXT: StabSectNum: 0x0
243 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
247 ; SYM-NEXT: Index: [[#INDX+6]]
248 ; SYM-NEXT: Name: .data
249 ; SYM-NEXT: Value (RelocatableAddress): 0x40
250 ; SYM-NEXT: Section: .data
251 ; SYM-NEXT: Type: 0x0
252 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
253 ; SYM-NEXT: NumberOfAuxEntries: 1
254 ; SYM-NEXT: CSECT Auxiliary Entry {
255 ; SYM-NEXT: Index: [[#INDX+7]]
256 ; SYM32-NEXT: SectionLen: 52
257 ; SYM64-NEXT: SectionLen: 56
258 ; SYM-NEXT: ParameterHashIndex: 0x0
259 ; SYM-NEXT: TypeChkSectNum: 0x0
260 ; SYM32-NEXT: SymbolAlignmentLog2: 2
261 ; SYM64-NEXT: SymbolAlignmentLog2: 3
262 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
263 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
264 ; SYM32-NEXT: StabInfoIndex: 0x0
265 ; SYM32-NEXT: StabSectNum: 0x0
266 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
270 ; SYM-NEXT: Index: [[#INDX+8]]
271 ; SYM-NEXT: Name: globalA
272 ; SYM-NEXT: Value (RelocatableAddress): 0x40
273 ; SYM-NEXT: Section: .data
274 ; SYM-NEXT: Type: 0x0
275 ; SYM-NEXT: StorageClass: C_EXT (0x2)
276 ; SYM-NEXT: NumberOfAuxEntries: 1
277 ; SYM-NEXT: CSECT Auxiliary Entry {
278 ; SYM-NEXT: Index: [[#INDX+9]]
279 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+6]]
280 ; SYM-NEXT: ParameterHashIndex: 0x0
281 ; SYM-NEXT: TypeChkSectNum: 0x0
282 ; SYM-NEXT: SymbolAlignmentLog2: 0
283 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
284 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
285 ; SYM32-NEXT: StabInfoIndex: 0x0
286 ; SYM32-NEXT: StabSectNum: 0x0
287 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
291 ; SYM-NEXT: Index: [[#INDX+10]]
292 ; SYM-NEXT: Name: globalB
293 ; SYM-NEXT: Value (RelocatableAddress): 0x44
294 ; SYM-NEXT: Section: .data
295 ; SYM-NEXT: Type: 0x0
296 ; SYM-NEXT: StorageClass: C_EXT (0x2)
297 ; SYM-NEXT: NumberOfAuxEntries: 1
298 ; SYM-NEXT: CSECT Auxiliary Entry {
299 ; SYM-NEXT: Index: [[#INDX+11]]
300 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+6]]
301 ; SYM-NEXT: ParameterHashIndex: 0x0
302 ; SYM-NEXT: TypeChkSectNum: 0x0
303 ; SYM-NEXT: SymbolAlignmentLog2: 0
304 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
305 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
306 ; SYM32-NEXT: StabInfoIndex: 0x0
307 ; SYM32-NEXT: StabSectNum: 0x0
308 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
312 ; SYM-NEXT: Index: [[#INDX+12]]
313 ; SYM-NEXT: Name: arr
314 ; SYM-NEXT: Value (RelocatableAddress): 0x48
315 ; SYM-NEXT: Section: .data
316 ; SYM-NEXT: Type: 0x0
317 ; SYM-NEXT: StorageClass: C_EXT (0x2)
318 ; SYM-NEXT: NumberOfAuxEntries: 1
319 ; SYM-NEXT: CSECT Auxiliary Entry {
320 ; SYM-NEXT: Index: [[#INDX+13]]
321 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+6]]
322 ; SYM-NEXT: ParameterHashIndex: 0x0
323 ; SYM-NEXT: TypeChkSectNum: 0x0
324 ; SYM-NEXT: SymbolAlignmentLog2: 0
325 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
326 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
327 ; SYM32-NEXT: StabInfoIndex: 0x0
328 ; SYM32-NEXT: StabSectNum: 0x0
329 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
333 ; SYM-NEXT: Index: [[#INDX+14]]
335 ; SYM-NEXT: Value (RelocatableAddress): 0x70
336 ; SYM-NEXT: Section: .data
337 ; SYM-NEXT: Type: 0x0
338 ; SYM-NEXT: StorageClass: C_EXT (0x2)
339 ; SYM-NEXT: NumberOfAuxEntries: 1
340 ; SYM-NEXT: CSECT Auxiliary Entry {
341 ; SYM-NEXT: Index: [[#INDX+15]]
342 ; SYM-NEXT: ContainingCsectSymbolIndex: [[#INDX+6]]
343 ; SYM-NEXT: ParameterHashIndex: 0x0
344 ; SYM-NEXT: TypeChkSectNum: 0x0
345 ; SYM-NEXT: SymbolAlignmentLog2: 0
346 ; SYM-NEXT: SymbolType: XTY_LD (0x2)
347 ; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
348 ; SYM32-NEXT: StabInfoIndex: 0x0
349 ; SYM32-NEXT: StabSectNum: 0x0
350 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
354 ; SYM-NEXT: Index: [[#INDX+16]]
355 ; SYM-NEXT: Name: foo
356 ; SYM32-NEXT: Value (RelocatableAddress): 0x74
357 ; SYM64-NEXT: Value (RelocatableAddress): 0x78
358 ; SYM-NEXT: Section: .data
359 ; SYM-NEXT: Type: 0x0
360 ; SYM-NEXT: StorageClass: C_EXT (0x2)
361 ; SYM-NEXT: NumberOfAuxEntries: 1
362 ; SYM-NEXT: CSECT Auxiliary Entry {
363 ; SYM-NEXT: Index: [[#INDX+17]]
364 ; SYM32-NEXT: SectionLen: 12
365 ; SYM64-NEXT: SectionLen: 24
366 ; SYM-NEXT: ParameterHashIndex: 0x0
367 ; SYM-NEXT: TypeChkSectNum: 0x0
368 ; SYM32-NEXT: SymbolAlignmentLog2: 2
369 ; SYM64-NEXT: SymbolAlignmentLog2: 3
370 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
371 ; SYM-NEXT: StorageMappingClass: XMC_DS (0xA)
372 ; SYM32-NEXT: StabInfoIndex: 0x0
373 ; SYM32-NEXT: StabSectNum: 0x0
374 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
378 ; SYM-NEXT: Index: [[#INDX+18]]
379 ; SYM-NEXT: Name: TOC
380 ; SYM32-NEXT: Value (RelocatableAddress): 0x80
381 ; SYM64-NEXT: Value (RelocatableAddress): 0x90
382 ; SYM-NEXT: Section: .data
383 ; SYM-NEXT: Type: 0x0
384 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
385 ; SYM-NEXT: NumberOfAuxEntries: 1
386 ; SYM-NEXT: CSECT Auxiliary Entry {
387 ; SYM-NEXT: Index: [[#INDX+19]]
388 ; SYM-NEXT: SectionLen: 0
389 ; SYM-NEXT: ParameterHashIndex: 0x0
390 ; SYM-NEXT: TypeChkSectNum: 0x0
391 ; SYM-NEXT: SymbolAlignmentLog2: 2
392 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
393 ; SYM-NEXT: StorageMappingClass: XMC_TC0 (0xF)
394 ; SYM32-NEXT: StabInfoIndex: 0x0
395 ; SYM32-NEXT: StabSectNum: 0x0
396 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
400 ; SYM-NEXT: Index: [[#INDX+20]]
401 ; SYM-NEXT: Name: globalA
402 ; SYM32-NEXT: Value (RelocatableAddress): 0x80
403 ; SYM64-NEXT: Value (RelocatableAddress): 0x90
404 ; SYM-NEXT: Section: .data
405 ; SYM-NEXT: Type: 0x0
406 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
407 ; SYM-NEXT: NumberOfAuxEntries: 1
408 ; SYM-NEXT: CSECT Auxiliary Entry {
409 ; SYM-NEXT: Index: [[#INDX+21]]
410 ; SYM32-NEXT: SectionLen: 4
411 ; SYM64-NEXT: SectionLen: 8
412 ; SYM-NEXT: ParameterHashIndex: 0x0
413 ; SYM-NEXT: TypeChkSectNum: 0x0
414 ; SYM32-NEXT: SymbolAlignmentLog2: 2
415 ; SYM64-NEXT: SymbolAlignmentLog2: 3
416 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
417 ; SYM-NEXT: StorageMappingClass: XMC_TC (0x3)
418 ; SYM32-NEXT: StabInfoIndex: 0x0
419 ; SYM32-NEXT: StabSectNum: 0x0
420 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
424 ; SYM-NEXT: Index: [[#INDX+22]]
425 ; SYM-NEXT: Name: globalB
426 ; SYM32-NEXT: Value (RelocatableAddress): 0x84
427 ; SYM64-NEXT: Value (RelocatableAddress): 0x98
428 ; SYM-NEXT: Section: .data
429 ; SYM-NEXT: Type: 0x0
430 ; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
431 ; SYM-NEXT: NumberOfAuxEntries: 1
432 ; SYM-NEXT: CSECT Auxiliary Entry {
433 ; SYM-NEXT: Index: [[#INDX+23]]
434 ; SYM32-NEXT: SectionLen: 4
435 ; SYM64-NEXT: SectionLen: 8
436 ; SYM-NEXT: ParameterHashIndex: 0x0
437 ; SYM-NEXT: TypeChkSectNum: 0x0
438 ; SYM32-NEXT: SymbolAlignmentLog2: 2
439 ; SYM64-NEXT: SymbolAlignmentLog2: 3
440 ; SYM-NEXT: SymbolType: XTY_SD (0x1)
441 ; SYM-NEXT: StorageMappingClass: XMC_TC (0x3)
442 ; SYM32-NEXT: StabInfoIndex: 0x0
443 ; SYM32-NEXT: StabSectNum: 0x0
444 ; SYM64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
450 ; DIS: : file format aixcoff-rs6000
451 ; DIS: Disassembly of section .text:
452 ; DIS: 00000000 <.foo>:
453 ; DIS-NEXT: 0: 7c 08 02 a6 mflr 0
454 ; DIS-NEXT: 4: 94 21 ff c0 stwu 1, -64(1)
455 ; DIS-NEXT: 8: 38 60 00 01 li 3, 1
456 ; DIS-NEXT: c: 90 01 00 48 stw 0, 72(1)
457 ; DIS-NEXT: 10: 4b ff ff f1 bl 0x0
458 ; DIS-NEXT: 14: 60 00 00 00 nop
459 ; DIS-NEXT: 18: 80 82 00 00 lwz 4, 0(2)
460 ; DIS-NEXT: 1c: 80 a2 00 04 lwz 5, 4(2)
461 ; DIS-NEXT: 20: 80 84 00 00 lwz 4, 0(4)
462 ; DIS-NEXT: 24: 80 a5 00 00 lwz 5, 0(5)
463 ; DIS-NEXT: 28: 7c 63 22 14 add 3, 3, 4
464 ; DIS-NEXT: 2c: 7c 63 2a 14 add 3, 3, 5
465 ; DIS-NEXT: 30: 38 21 00 40 addi 1, 1, 64
466 ; DIS-NEXT: 34: 80 01 00 08 lwz 0, 8(1)
467 ; DIS-NEXT: 38: 7c 08 03 a6 mtlr 0
468 ; DIS-NEXT: 3c: 4e 80 00 20 blr
470 ; DIS: Disassembly of section .data:
471 ; DIS: 00000040 <globalA>:
472 ; DIS-NEXT: 40: 00 00 00 01 <unknown>
473 ; DIS: 00000044 <globalB>:
474 ; DIS-NEXT: 44: 00 00 00 02 <unknown>
475 ; DIS: 00000048 <arr>:
476 ; DIS-NEXT: 48: 00 00 00 03 <unknown>
479 ; DIS-NEXT: 70: 00 00 00 58 <unknown>
480 ; DIS: 00000074 <foo>:
481 ; DIS-NEXT: 74: 00 00 00 00 <unknown>
482 ; DIS-NEXT: 78: 00 00 00 80 <unknown>
483 ; DIS-NEXT: 7c: 00 00 00 00 <unknown>
484 ; DIS: 00000080 <globalA>:
485 ; DIS-NEXT: 80: 00 00 00 40 <unknown>
486 ; DIS: 00000084 <globalB>:
487 ; DIS-NEXT: 84: 00 00 00 44 <unknown>
489 ; DIS_REL: : file format aixcoff-rs6000
490 ; DIS_REL: RELOCATION RECORDS FOR [.text]:
491 ; DIS_REL-NEXT: OFFSET TYPE VALUE
492 ; DIS_REL-NEXT: 00000010 R_RBR .bar
493 ; DIS_REL-NEXT: 0000001a R_TOC globalA
494 ; DIS_REL-NEXT: 0000001e R_TOC globalB
495 ; DIS_REL: RELOCATION RECORDS FOR [.data]:
496 ; DIS_REL-NEXT: OFFSET TYPE VALUE
497 ; DIS_REL-NEXT: 00000030 R_POS arr
498 ; DIS_REL-NEXT: 00000034 R_POS .foo
499 ; DIS_REL-NEXT: 00000038 R_POS TOC
500 ; DIS_REL-NEXT: 00000040 R_POS globalA
501 ; DIS_REL-NEXT: 00000044 R_POS globalB
503 ; DIS64: Disassembly of section .text:
504 ; DIS64: 0000000000000000 <.foo>:
505 ; DIS64-NEXT: 0: 7c 08 02 a6 mflr 0
506 ; DIS64-NEXT: 4: f8 21 ff 91 stdu 1, -112(1)
507 ; DIS64-NEXT: 8: 38 60 00 01 li 3, 1
508 ; DIS64-NEXT: c: f8 01 00 80 std 0, 128(1)
509 ; DIS64-NEXT: 10: 4b ff ff f1 bl 0x0 <.bar>
510 ; DIS64-NEXT: 14: 60 00 00 00 nop
511 ; DIS64-NEXT: 18: e8 82 00 00 ld 4, 0(2)
512 ; DIS64-NEXT: 1c: e8 a2 00 08 ld 5, 8(2)
513 ; DIS64-NEXT: 20: 80 84 00 00 lwz 4, 0(4)
514 ; DIS64-NEXT: 24: 80 a5 00 00 lwz 5, 0(5)
515 ; DIS64-NEXT: 28: 7c 63 22 14 add 3, 3, 4
516 ; DIS64-NEXT: 2c: 7c 63 2a 14 add 3, 3, 5
517 ; DIS64-NEXT: 30: 38 21 00 70 addi 1, 1, 112
518 ; DIS64-NEXT: 34: e8 01 00 10 ld 0, 16(1)
519 ; DIS64-NEXT: 38: 7c 08 03 a6 mtlr 0
520 ; DIS64-NEXT: 3c: 4e 80 00 20 blr
522 ; DIS64: Disassembly of section .data:
523 ; DIS64: 0000000000000040 <globalA>:
524 ; DIS64-NEXT: 40: 00 00 00 01 <unknown>
525 ; DIS64: 0000000000000044 <globalB>:
526 ; DIS64-NEXT: 44: 00 00 00 02 <unknown>
527 ; DIS64: 0000000000000048 <arr>:
528 ; DIS64-NEXT: 48: 00 00 00 03 <unknown>
530 ; DIS64: 0000000000000070 <p>:
531 ; DIS64-NEXT: 70: 00 00 00 00 <unknown>
532 ; DIS64-NEXT: 74: 00 00 00 58 <unknown>
533 ; DIS64: 0000000000000078 <foo>:
535 ; DIS64-NEXT: 84: 00 00 00 90 <unknown>
537 ; DIS64: 0000000000000090 <globalA>:
538 ; DIS64-NEXT: 90: 00 00 00 00 <unknown>
539 ; DIS64-NEXT: 94: 00 00 00 40 <unknown>
540 ; DIS64: 0000000000000098 <globalB>:
541 ; DIS64-NEXT: 98: 00 00 00 00 <unknown>
542 ; DIS64-NEXT: 9c: 00 00 00 44 <unknown>
544 ; DIS_REL64: RELOCATION RECORDS FOR [.text]:
545 ; DIS_REL64-NEXT: OFFSET TYPE VALUE
546 ; DIS_REL64-NEXT: 0000000000000010 R_RBR .bar
547 ; DIS_REL64-NEXT: 000000000000001a R_TOC globalA
548 ; DIS_REL64-NEXT: 000000000000001e R_TOC globalB
550 ; DIS_REL64: RELOCATION RECORDS FOR [.data]:
551 ; DIS_REL64-NEXT: OFFSET TYPE VALUE
552 ; DIS_REL64-NEXT: 0000000000000030 R_POS arr
553 ; DIS_REL64-NEXT: 0000000000000038 R_POS .foo
554 ; DIS_REL64-NEXT: 0000000000000040 R_POS TOC
555 ; DIS_REL64-NEXT: 0000000000000050 R_POS globalA
556 ; DIS_REL64-NEXT: 0000000000000058 R_POS globalB