You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
3.3 KiB
93 lines
3.3 KiB
; RUN: llc -verify-machineinstrs -mcpu=pwr7 -mattr=-altivec -mtriple powerpc-ibm-aix-xcoff -filetype=obj -o %t.o < %s
|
|
; RUN: llvm-readobj --symbols %t.o | FileCheck %s
|
|
|
|
define void @foo() {
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
; CHECK: File: {{.*}}aix-func-dsc-gen.ll.tmp.o
|
|
; CHECK-NEXT: Format: aixcoff-rs6000
|
|
; CHECK-NEXT: Arch: powerpc
|
|
; CHECK-NEXT: AddressSize: 32bit
|
|
; CHECK: Symbol {
|
|
; CHECK-NEXT: Index: [[#Index:]]
|
|
; CHECK-NEXT: Name: .text
|
|
; CHECK-NEXT: Value (RelocatableAddress): 0x0
|
|
; CHECK-NEXT: Section: .text
|
|
; CHECK-NEXT: Type: 0x0
|
|
; CHECK-NEXT: StorageClass: C_HIDEXT (0x6B)
|
|
; CHECK-NEXT: NumberOfAuxEntries: 1
|
|
; CHECK-NEXT: CSECT Auxiliary Entry {
|
|
; CHECK-NEXT: Index: [[#Index+1]]
|
|
; CHECK-NEXT: SectionLen: 4
|
|
; CHECK-NEXT: ParameterHashIndex: 0x0
|
|
; CHECK-NEXT: TypeChkSectNum: 0x0
|
|
; CHECK-NEXT: SymbolAlignmentLog2: 4
|
|
; CHECK-NEXT: SymbolType: XTY_SD (0x1)
|
|
; CHECK-NEXT: StorageMappingClass: XMC_PR (0x0)
|
|
; CHECK-NEXT: StabInfoIndex: 0x0
|
|
; CHECK-NEXT: StabSectNum: 0x0
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: Symbol {
|
|
; CHECK-NEXT: Index: [[#Index+2]]
|
|
; CHECK-NEXT: Name: .foo
|
|
; CHECK-NEXT: Value (RelocatableAddress): 0x0
|
|
; CHECK-NEXT: Section: .text
|
|
; CHECK-NEXT: Type: 0x0
|
|
; CHECK-NEXT: StorageClass: C_EXT (0x2)
|
|
; CHECK-NEXT: NumberOfAuxEntries: 1
|
|
; CHECK-NEXT: CSECT Auxiliary Entry {
|
|
; CHECK-NEXT: Index: [[#Index+3]]
|
|
; CHECK-NEXT: ContainingCsectSymbolIndex: [[#Index]]
|
|
; CHECK-NEXT: ParameterHashIndex: 0x0
|
|
; CHECK-NEXT: TypeChkSectNum: 0x0
|
|
; CHECK-NEXT: SymbolAlignmentLog2: 0
|
|
; CHECK-NEXT: SymbolType: XTY_LD (0x2)
|
|
; CHECK-NEXT: StorageMappingClass: XMC_PR (0x0)
|
|
; CHECK-NEXT: StabInfoIndex: 0x0
|
|
; CHECK-NEXT: StabSectNum: 0x0
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: Symbol {
|
|
; CHECK-NEXT: Index: [[#Index+4]]
|
|
; CHECK-NEXT: Name: foo
|
|
; CHECK-NEXT: Value (RelocatableAddress): 0x4
|
|
; CHECK-NEXT: Section: .data
|
|
; CHECK-NEXT: Type: 0x0
|
|
; CHECK-NEXT: StorageClass: C_EXT (0x2)
|
|
; CHECK-NEXT: NumberOfAuxEntries: 1
|
|
; CHECK-NEXT: CSECT Auxiliary Entry {
|
|
; CHECK-NEXT: Index: [[#Index+5]]
|
|
; CHECK-NEXT: SectionLen: 12
|
|
; CHECK-NEXT: ParameterHashIndex: 0x0
|
|
; CHECK-NEXT: TypeChkSectNum: 0x0
|
|
; CHECK-NEXT: SymbolAlignmentLog2: 2
|
|
; CHECK-NEXT: SymbolType: XTY_SD (0x1)
|
|
; CHECK-NEXT: StorageMappingClass: XMC_DS (0xA)
|
|
; CHECK-NEXT: StabInfoIndex: 0x0
|
|
; CHECK-NEXT: StabSectNum: 0x0
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: Symbol {
|
|
; CHECK-NEXT: Index: [[#Index+6]]
|
|
; CHECK-NEXT: Name: TOC
|
|
; CHECK-NEXT: Value (RelocatableAddress): 0x10
|
|
; CHECK-NEXT: Section: .data
|
|
; CHECK-NEXT: Type: 0x0
|
|
; CHECK-NEXT: StorageClass: C_HIDEXT (0x6B)
|
|
; CHECK-NEXT: NumberOfAuxEntries: 1
|
|
; CHECK-NEXT: CSECT Auxiliary Entry {
|
|
; CHECK-NEXT: Index: [[#Index+7]]
|
|
; CHECK-NEXT: SectionLen: 0
|
|
; CHECK-NEXT: ParameterHashIndex: 0x0
|
|
; CHECK-NEXT: TypeChkSectNum: 0x0
|
|
; CHECK-NEXT: SymbolAlignmentLog2: 2
|
|
; CHECK-NEXT: SymbolType: XTY_SD (0x1)
|
|
; CHECK-NEXT: StorageMappingClass: XMC_TC0 (0xF)
|
|
; CHECK-NEXT: StabInfoIndex: 0x0
|
|
; CHECK-NEXT: StabSectNum: 0x0
|
|
; CHECK-NEXT: }
|
|
; CHECK-NEXT: }
|