114 lines · plain
1; RUN: llc -mtriple powerpc-ibm-aix-xcoff < %s | FileCheck %s2; RUN: llc -mtriple powerpc64-ibm-aix-xcoff < %s | FileCheck %s3 4; RUN: llc -mtriple powerpc-ibm-aix-xcoff -filetype=obj -o %t.o < %s5; RUN: llvm-readobj --section-headers --file-header %t.o | \6; RUN: FileCheck --check-prefixes=OBJ,OBJ32 %s7; RUN: llvm-readobj --syms %t.o | FileCheck --check-prefixes=SYMS,SYMS32 %s8 9; RUN: llc -mtriple powerpc64-ibm-aix-xcoff -filetype=obj -o %t64.o < %s10; RUN: llvm-readobj --section-headers --file-header %t64.o | \11; RUN: FileCheck --check-prefixes=OBJ,OBJ64 %s12; RUN: llvm-readobj --syms %t64.o | FileCheck --check-prefixes=SYMS,SYMS64 %s13 14@a = internal global i32 0, align 415@b = internal global i64 0, align 816@c = internal global i16 0, align 217 18; CHECK: .lcomm a,4,a[BS],219; CHECK-NEXT: .lcomm b,8,b[BS],320; CHECK-NEXT: .lcomm c,2,c[BS],121 22; OBJ: Arch: powerpc23; OBJ32-NEXT: AddressSize: 32bit24; OBJ64-NEXT: AddressSize: 64bit25; OBJ-NEXT: FileHeader {26; OBJ32-NEXT: Magic: 0x1DF27; OBJ64-NEXT: Magic: 0x1F728; OBJ-NEXT: NumberOfSections: 229; OBJ-NEXT: TimeStamp:30; OBJ32-NEXT: SymbolTableOffset: 0x6431; OBJ64-NEXT: SymbolTableOffset: 0xA832; OBJ-NEXT: SymbolTableEntries: 1133; OBJ-NEXT: OptionalHeaderSize: 0x034; OBJ-NEXT: Flags: 0x035; OBJ-NEXT: }36; OBJ-NEXT: Sections [37; OBJ: Section {{[{][[:space:]] *}}Index: 238; OBJ-NEXT: Name: .bss39; OBJ-NEXT: PhysicalAddress: 0x040; OBJ-NEXT: VirtualAddress: 0x041; OBJ-NEXT: Size: 0x1442; OBJ-NEXT: RawDataOffset: 0x043; OBJ-NEXT: RelocationPointer: 0x044; OBJ-NEXT: LineNumberPointer: 0x045; OBJ-NEXT: NumberOfRelocations: 046; OBJ-NEXT: NumberOfLineNumbers: 047; OBJ-NEXT: Type: STYP_BSS (0x80)48; OBJ-NEXT: }49; OBJ-NEXT: ]50 51; SYMS: Symbols [52; SYMS: Symbol {{[{][[:space:]] *}}Index: [[#Index:]]{{[[:space:]] *}}Name: a53; SYMS-NEXT: Value (RelocatableAddress): 0x054; SYMS-NEXT: Section: .bss55; SYMS-NEXT: Type: 0x056; SYMS-NEXT: StorageClass: C_HIDEXT (0x6B)57; SYMS-NEXT: NumberOfAuxEntries: 158; SYMS-NEXT: CSECT Auxiliary Entry {59; SYMS-NEXT: Index: [[#Index + 1]]60; SYMS-NEXT: SectionLen: 461; SYMS-NEXT: ParameterHashIndex: 0x062; SYMS-NEXT: TypeChkSectNum: 0x063; SYMS-NEXT: SymbolAlignmentLog2: 264; SYMS-NEXT: SymbolType: XTY_CM (0x3)65; SYMS-NEXT: StorageMappingClass: XMC_BS (0x9)66; SYMS32-NEXT: StabInfoIndex: 0x067; SYMS32-NEXT: StabSectNum: 0x068; SYMS64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)69; SYMS-NEXT: }70; SYMS-NEXT: }71; SYMS-NEXT: Symbol {72; SYMS-NEXT: Index: [[#Index + 2]]73; SYMS-NEXT: Name: b74; SYMS-NEXT: Value (RelocatableAddress): 0x875; SYMS-NEXT: Section: .bss76; SYMS-NEXT: Type: 0x077; SYMS-NEXT: StorageClass: C_HIDEXT (0x6B)78; SYMS-NEXT: NumberOfAuxEntries: 179; SYMS-NEXT: CSECT Auxiliary Entry {80; SYMS-NEXT: Index: [[#Index + 3]]81; SYMS-NEXT: SectionLen: 882; SYMS-NEXT: ParameterHashIndex: 0x083; SYMS-NEXT: TypeChkSectNum: 0x084; SYMS-NEXT: SymbolAlignmentLog2: 385; SYMS-NEXT: SymbolType: XTY_CM (0x3)86; SYMS-NEXT: StorageMappingClass: XMC_BS (0x9)87; SYMS32-NEXT: StabInfoIndex: 0x088; SYMS32-NEXT: StabSectNum: 0x089; SYMS64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)90; SYMS-NEXT: }91; SYMS-NEXT: }92; SYMS-NEXT: Symbol {93; SYMS-NEXT: Index: [[#Index + 4]]94; SYMS-NEXT: Name: c95; SYMS-NEXT: Value (RelocatableAddress): 0x1096; SYMS-NEXT: Section: .bss97; SYMS-NEXT: Type: 0x098; SYMS-NEXT: StorageClass: C_HIDEXT (0x6B)99; SYMS-NEXT: NumberOfAuxEntries: 1100; SYMS-NEXT: CSECT Auxiliary Entry {101; SYMS-NEXT: Index: [[#Index + 5]]102; SYMS-NEXT: SectionLen: 2103; SYMS-NEXT: ParameterHashIndex: 0x0104; SYMS-NEXT: TypeChkSectNum: 0x0105; SYMS-NEXT: SymbolAlignmentLog2: 1106; SYMS-NEXT: SymbolType: XTY_CM (0x3)107; SYMS-NEXT: StorageMappingClass: XMC_BS (0x9)108; SYMS32-NEXT: StabInfoIndex: 0x0109; SYMS32-NEXT: StabSectNum: 0x0110; SYMS64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)111; SYMS-NEXT: }112; SYMS-NEXT: }113; SYMS-NEXT: ]114