1 ; RUN: llc -mtriple powerpc-ibm-aix-xcoff -verify-machineinstrs < %s | FileCheck %s
2 ; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -verify-machineinstrs < %s | FileCheck %s
4 ; RUN: llc -filetype=obj -mtriple powerpc-ibm-aix-xcoff -verify-machineinstrs < %s -o %t32.o
5 ; RUN: llvm-readobj %t32.o --syms | FileCheck %s --check-prefix=OBJ32
6 ; RUN: llc -filetype=obj -mtriple powerpc64-ibm-aix-xcoff -verify-machineinstrs < %s -o %t64.o
7 ; RUN: llvm-readobj %t64.o --syms | FileCheck %s --check-prefix=OBJ64
9 @i = global i32 55, align 4 #0
11 attributes #0 = { "toc-data" }
14 ; CHECK-NEXT: .csect i[TD],2
15 ; CHECK-NEXT: .globl i[TD]
16 ; CHECK-NEXT: .align 2
17 ; CHECK-NEXT: .vbyte 4, 55
21 ; OBJ32-NEXT: Name: TOC
22 ; OBJ32-NEXT: Value (RelocatableAddress): 0x0
23 ; OBJ32-NEXT: Section: .data
24 ; OBJ32-NEXT: Type: 0x0
25 ; OBJ32-NEXT: StorageClass: C_HIDEXT (0x6B)
26 ; OBJ32-NEXT: NumberOfAuxEntries: 1
27 ; OBJ32-NEXT: CSECT Auxiliary Entry {
28 ; OBJ32-NEXT: Index: 4
29 ; OBJ32-NEXT: SectionLen: 0
30 ; OBJ32-NEXT: ParameterHashIndex: 0x0
31 ; OBJ32-NEXT: TypeChkSectNum: 0x0
32 ; OBJ32-NEXT: SymbolAlignmentLog2: 2
33 ; OBJ32-NEXT: SymbolType: XTY_SD (0x1)
34 ; OBJ32-NEXT: StorageMappingClass: XMC_TC0 (0xF)
35 ; OBJ32-NEXT: StabInfoIndex: 0x0
36 ; OBJ32-NEXT: StabSectNum: 0x0
39 ; OBJ32-NEXT: Symbol {
40 ; OBJ32-NEXT: Index: 5
42 ; OBJ32-NEXT: Value (RelocatableAddress): 0x0
43 ; OBJ32-NEXT: Section: .data
44 ; OBJ32-NEXT: Type: 0x0
45 ; OBJ32-NEXT: StorageClass: C_EXT (0x2)
46 ; OBJ32-NEXT: NumberOfAuxEntries: 1
47 ; OBJ32-NEXT: CSECT Auxiliary Entry {
48 ; OBJ32-NEXT: Index: 6
49 ; OBJ32-NEXT: SectionLen: 4
50 ; OBJ32-NEXT: ParameterHashIndex: 0x0
51 ; OBJ32-NEXT: TypeChkSectNum: 0x0
52 ; OBJ32-NEXT: SymbolAlignmentLog2: 2
53 ; OBJ32-NEXT: SymbolType: XTY_SD (0x1)
54 ; OBJ32-NEXT: StorageMappingClass: XMC_TD (0x10)
55 ; OBJ32-NEXT: StabInfoIndex: 0x0
56 ; OBJ32-NEXT: StabSectNum: 0x0
62 ; OBJ64-NEXT: Name: TOC
63 ; OBJ64-NEXT: Value (RelocatableAddress): 0x0
64 ; OBJ64-NEXT: Section: .data
65 ; OBJ64-NEXT: Type: 0x0
66 ; OBJ64-NEXT: StorageClass: C_HIDEXT (0x6B)
67 ; OBJ64-NEXT: NumberOfAuxEntries: 1
68 ; OBJ64-NEXT: CSECT Auxiliary Entry {
69 ; OBJ64-NEXT: Index: 4
70 ; OBJ64-NEXT: SectionLen: 0
71 ; OBJ64-NEXT: ParameterHashIndex: 0x0
72 ; OBJ64-NEXT: TypeChkSectNum: 0x0
73 ; OBJ64-NEXT: SymbolAlignmentLog2: 2
74 ; OBJ64-NEXT: SymbolType: XTY_SD (0x1)
75 ; OBJ64-NEXT: StorageMappingClass: XMC_TC0 (0xF)
76 ; OBJ64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
79 ; OBJ64-NEXT: Symbol {
80 ; OBJ64-NEXT: Index: 5
82 ; OBJ64-NEXT: Value (RelocatableAddress): 0x0
83 ; OBJ64-NEXT: Section: .data
84 ; OBJ64-NEXT: Type: 0x0
85 ; OBJ64-NEXT: StorageClass: C_EXT (0x2)
86 ; OBJ64-NEXT: NumberOfAuxEntries: 1
87 ; OBJ64-NEXT: CSECT Auxiliary Entry {
88 ; OBJ64-NEXT: Index: 6
89 ; OBJ64-NEXT: SectionLen: 4
90 ; OBJ64-NEXT: ParameterHashIndex: 0x0
91 ; OBJ64-NEXT: TypeChkSectNum: 0x0
92 ; OBJ64-NEXT: SymbolAlignmentLog2: 2
93 ; OBJ64-NEXT: SymbolType: XTY_SD (0x1)
94 ; OBJ64-NEXT: StorageMappingClass: XMC_TD (0x10)
95 ; OBJ64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)