
The MI is generated in `PPCDAGToDAGISel::Select` so the match pattern isn't used and can be removed.
646 lines
24 KiB
LLVM
646 lines
24 KiB
LLVM
; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec -mtriple powerpc-ibm-aix-xcoff \
|
|
; RUN: -xcoff-traceback-table=false --code-model=large -filetype=obj -o %t.o < %s
|
|
; RUN: llvm-readobj --relocs --expand-relocs %t.o | FileCheck -D#NFA=2 --check-prefix=RELOC %s
|
|
; RUN: llvm-readobj --syms %t.o | FileCheck -D#NFA=2 --check-prefix=SYM %s
|
|
; RUN: llvm-objdump -D -r --symbol-description %t.o | FileCheck -D#NFA=2 --check-prefix=DIS %s
|
|
|
|
@GInit = global double 1.000000e+00, align 8
|
|
; @TIInit is local-dynamic indeed
|
|
@TIInit = internal thread_local global i64 1, align 8
|
|
@TWInit = weak thread_local global double 1.000000e+00, align 8
|
|
|
|
; Function Attrs: nofree norecurse nounwind willreturn writeonly
|
|
define void @storesTIInit(i64 %Val) #0 {
|
|
entry:
|
|
store i64 %Val, ptr @TIInit, align 8
|
|
ret void
|
|
}
|
|
|
|
; Function Attrs: norecurse nounwind readonly willreturn
|
|
define double @loadsTWInit() #1 {
|
|
entry:
|
|
%0 = load double, ptr @TWInit, align 8
|
|
%1 = load double, ptr @GInit, align 8
|
|
%add = fadd double %0, %1
|
|
ret double %add
|
|
}
|
|
|
|
; RELOC: File:
|
|
; RELOC-NEXT: Format: aixcoff-rs6000
|
|
; RELOC-NEXT: Arch: powerpc
|
|
; RELOC-NEXT: AddressSize: 32bit
|
|
; RELOC-NEXT: Relocations [
|
|
; RELOC-NEXT: Section (index: 1) .text {
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x12
|
|
; RELOC-NEXT: Symbol: TIInit ([[#NFA+19]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 16
|
|
; RELOC-NEXT: Type: R_TOCU (0x30)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x16
|
|
; RELOC-NEXT: Symbol: _$TLSML ([[#NFA+21]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 16
|
|
; RELOC-NEXT: Type: R_TOCU (0x30)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x1E
|
|
; RELOC-NEXT: Symbol: _$TLSML ([[#NFA+21]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 16
|
|
; RELOC-NEXT: Type: R_TOCL (0x31)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x20
|
|
; RELOC-NEXT: Symbol: .__tls_get_mod ([[#NFA+1]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 26
|
|
; RELOC-NEXT: Type: R_RBA (0x18)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x26
|
|
; RELOC-NEXT: Symbol: TIInit ([[#NFA+19]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 16
|
|
; RELOC-NEXT: Type: R_TOCL (0x31)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x4E
|
|
; RELOC-NEXT: Symbol: .TWInit ([[#NFA+23]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 16
|
|
; RELOC-NEXT: Type: R_TOCU (0x30)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x52
|
|
; RELOC-NEXT: Symbol: TWInit ([[#NFA+25]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 16
|
|
; RELOC-NEXT: Type: R_TOCU (0x30)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x56
|
|
; RELOC-NEXT: Symbol: .TWInit ([[#NFA+23]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 16
|
|
; RELOC-NEXT: Type: R_TOCL (0x31)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x5A
|
|
; RELOC-NEXT: Symbol: TWInit ([[#NFA+25]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 16
|
|
; RELOC-NEXT: Type: R_TOCL (0x31)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x5C
|
|
; RELOC-NEXT: Symbol: .__tls_get_addr ([[#NFA+3]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 26
|
|
; RELOC-NEXT: Type: R_RBA (0x18)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x66
|
|
; RELOC-NEXT: Symbol: GInit ([[#NFA+27]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 16
|
|
; RELOC-NEXT: Type: R_TOCU (0x30)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x6A
|
|
; RELOC-NEXT: Symbol: GInit ([[#NFA+27]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 16
|
|
; RELOC-NEXT: Type: R_TOCL (0x31)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Section (index: 2) .data {
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x90
|
|
; RELOC-NEXT: Symbol: .storesTIInit ([[#NFA+7]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 32
|
|
; RELOC-NEXT: Type: R_POS (0x0)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x94
|
|
; RELOC-NEXT: Symbol: TOC ([[#NFA+17]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 32
|
|
; RELOC-NEXT: Type: R_POS (0x0)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0x9C
|
|
; RELOC-NEXT: Symbol: .loadsTWInit ([[#NFA+9]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 32
|
|
; RELOC-NEXT: Type: R_POS (0x0)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0xA0
|
|
; RELOC-NEXT: Symbol: TOC ([[#NFA+17]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 32
|
|
; RELOC-NEXT: Type: R_POS (0x0)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0xA8
|
|
; RELOC-NEXT: Symbol: TIInit ([[#NFA+29]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 32
|
|
; RELOC-NEXT: Type: R_TLS_LD (0x22)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0xAC
|
|
; RELOC-NEXT: Symbol: _$TLSML ([[#NFA+21]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 32
|
|
; RELOC-NEXT: Type: R_TLSML (0x25)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0xB0
|
|
; RELOC-NEXT: Symbol: TWInit ([[#NFA+31]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 32
|
|
; RELOC-NEXT: Type: R_TLSM (0x24)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0xB4
|
|
; RELOC-NEXT: Symbol: TWInit ([[#NFA+31]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 32
|
|
; RELOC-NEXT: Type: R_TLS (0x20)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: Relocation {
|
|
; RELOC-NEXT: Virtual Address: 0xB8
|
|
; RELOC-NEXT: Symbol: GInit ([[#NFA+11]])
|
|
; RELOC-NEXT: IsSigned: No
|
|
; RELOC-NEXT: FixupBitValue: 0
|
|
; RELOC-NEXT: Length: 32
|
|
; RELOC-NEXT: Type: R_POS (0x0)
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: }
|
|
; RELOC-NEXT: ]
|
|
|
|
; SYM: File:
|
|
; SYM-NEXT: Format: aixcoff-rs6000
|
|
; SYM-NEXT: Arch: powerpc
|
|
; SYM-NEXT: AddressSize: 32bit
|
|
; SYM-NEXT: Symbols [
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: 0
|
|
; SYM-NEXT: Name: .file
|
|
; SYM-NEXT: Value (SymbolTableIndex): 0x0
|
|
; SYM-NEXT: Section: N_DEBUG
|
|
; SYM-NEXT: Source Language ID: TB_CPLUSPLUS (0x9)
|
|
; SYM-NEXT: CPU Version ID: TCPU_COM (0x3)
|
|
; SYM-NEXT: StorageClass: C_FILE (0x67)
|
|
; SYM-NEXT: NumberOfAuxEntries: 2
|
|
; SYM-NEXT: File Auxiliary Entry {
|
|
; SYM-NEXT: Index: 1
|
|
; SYM-NEXT: Name:
|
|
; SYM-NEXT: Type: XFT_FN (0x0)
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: File Auxiliary Entry {
|
|
; SYM-NEXT: Index: 2
|
|
; SYM-NEXT: Name: LLVM
|
|
; SYM-NEXT: Type: XFT_CV (0x2)
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+1]]
|
|
; SYM-NEXT: Name: .__tls_get_mod
|
|
; SYM-NEXT: Value (RelocatableAddress): 0x0
|
|
; SYM-NEXT: Section: N_UNDEF
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_EXT (0x2)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+2]]
|
|
; SYM-NEXT: SectionLen: 0
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 0
|
|
; SYM-NEXT: SymbolType: XTY_ER (0x0)
|
|
; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+3]]
|
|
; SYM-NEXT: Name: .__tls_get_addr
|
|
; SYM-NEXT: Value (RelocatableAddress): 0x0
|
|
; SYM-NEXT: Section: N_UNDEF
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_EXT (0x2)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+4]]
|
|
; SYM-NEXT: SectionLen: 0
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 0
|
|
; SYM-NEXT: SymbolType: XTY_ER (0x0)
|
|
; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+5]]
|
|
; SYM-NEXT: Name:
|
|
; SYM-NEXT: Value (RelocatableAddress): 0x0
|
|
; SYM-NEXT: Section: .text
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+6]]
|
|
; SYM-NEXT: SectionLen: 132
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 5
|
|
; SYM-NEXT: SymbolType: XTY_SD (0x1)
|
|
; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+7]]
|
|
; SYM-NEXT: Name: .storesTIInit
|
|
; SYM-NEXT: Value (RelocatableAddress): 0x0
|
|
; SYM-NEXT: Section: .text
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_EXT (0x2)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+8]]
|
|
; SYM-NEXT: ContainingCsectSymbolIndex: [[#NFA+5]]
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 0
|
|
; SYM-NEXT: SymbolType: XTY_LD (0x2)
|
|
; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+9]]
|
|
; SYM-NEXT: Name: .loadsTWInit
|
|
; SYM-NEXT: Value (RelocatableAddress): 0x40
|
|
; SYM-NEXT: Section: .text
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_EXT (0x2)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+10]]
|
|
; SYM-NEXT: ContainingCsectSymbolIndex: [[#NFA+5]]
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 0
|
|
; SYM-NEXT: SymbolType: XTY_LD (0x2)
|
|
; SYM-NEXT: StorageMappingClass: XMC_PR (0x0)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+11]]
|
|
; SYM-NEXT: Name: GInit
|
|
; SYM-NEXT: Value (RelocatableAddress): 0x88
|
|
; SYM-NEXT: Section: .data
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_EXT (0x2)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+12]]
|
|
; SYM-NEXT: SectionLen: 8
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 3
|
|
; SYM-NEXT: SymbolType: XTY_SD (0x1)
|
|
; SYM-NEXT: StorageMappingClass: XMC_RW (0x5)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+13]]
|
|
; SYM-NEXT: Name: storesTIInit
|
|
; SYM-NEXT: Value (RelocatableAddress): 0x90
|
|
; SYM-NEXT: Section: .data
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_EXT (0x2)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+14]]
|
|
; SYM-NEXT: SectionLen: 12
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 2
|
|
; SYM-NEXT: SymbolType: XTY_SD (0x1)
|
|
; SYM-NEXT: StorageMappingClass: XMC_DS (0xA)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+15]]
|
|
; SYM-NEXT: Name: loadsTWInit
|
|
; SYM-NEXT: Value (RelocatableAddress): 0x9C
|
|
; SYM-NEXT: Section: .data
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_EXT (0x2)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+16]]
|
|
; SYM-NEXT: SectionLen: 12
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 2
|
|
; SYM-NEXT: SymbolType: XTY_SD (0x1)
|
|
; SYM-NEXT: StorageMappingClass: XMC_DS (0xA)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+17]]
|
|
; SYM-NEXT: Name: TOC
|
|
; SYM-NEXT: Value (RelocatableAddress): 0xA8
|
|
; SYM-NEXT: Section: .data
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+18]]
|
|
; SYM-NEXT: SectionLen: 0
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 2
|
|
; SYM-NEXT: SymbolType: XTY_SD (0x1)
|
|
; SYM-NEXT: StorageMappingClass: XMC_TC0 (0xF)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+19]]
|
|
; SYM-NEXT: Name: TIInit
|
|
; SYM-NEXT: Value (RelocatableAddress): 0xA8
|
|
; SYM-NEXT: Section: .data
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+20]]
|
|
; SYM-NEXT: SectionLen: 4
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 2
|
|
; SYM-NEXT: SymbolType: XTY_SD (0x1)
|
|
; SYM-NEXT: StorageMappingClass: XMC_TE (0x16)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+21]]
|
|
; SYM-NEXT: Name: _$TLSML
|
|
; SYM-NEXT: Value (RelocatableAddress): 0xAC
|
|
; SYM-NEXT: Section: .data
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+22]]
|
|
; SYM-NEXT: SectionLen: 4
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 2
|
|
; SYM-NEXT: SymbolType: XTY_SD (0x1)
|
|
; SYM-NEXT: StorageMappingClass: XMC_TC (0x3)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+23]]
|
|
; SYM-NEXT: Name: .TWInit
|
|
; SYM-NEXT: Value (RelocatableAddress): 0xB0
|
|
; SYM-NEXT: Section: .data
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+24]]
|
|
; SYM-NEXT: SectionLen: 4
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 2
|
|
; SYM-NEXT: SymbolType: XTY_SD (0x1)
|
|
; SYM-NEXT: StorageMappingClass: XMC_TE (0x16)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+25]]
|
|
; SYM-NEXT: Name: TWInit
|
|
; SYM-NEXT: Value (RelocatableAddress): 0xB4
|
|
; SYM-NEXT: Section: .data
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+26]]
|
|
; SYM-NEXT: SectionLen: 4
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 2
|
|
; SYM-NEXT: SymbolType: XTY_SD (0x1)
|
|
; SYM-NEXT: StorageMappingClass: XMC_TE (0x16)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+27]]
|
|
; SYM-NEXT: Name: GInit
|
|
; SYM-NEXT: Value (RelocatableAddress): 0xB8
|
|
; SYM-NEXT: Section: .data
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+28]]
|
|
; SYM-NEXT: SectionLen: 4
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 2
|
|
; SYM-NEXT: SymbolType: XTY_SD (0x1)
|
|
; SYM-NEXT: StorageMappingClass: XMC_TE (0x16)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+29]]
|
|
; SYM-NEXT: Name: TIInit
|
|
; SYM-NEXT: Value (RelocatableAddress): 0x0
|
|
; SYM-NEXT: Section: .tdata
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_HIDEXT (0x6B)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+30]]
|
|
; SYM-NEXT: SectionLen: 8
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 3
|
|
; SYM-NEXT: SymbolType: XTY_SD (0x1)
|
|
; SYM-NEXT: StorageMappingClass: XMC_TL (0x14)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: Symbol {
|
|
; SYM-NEXT: Index: [[#NFA+31]]
|
|
; SYM-NEXT: Name: TWInit
|
|
; SYM-NEXT: Value (RelocatableAddress): 0x8
|
|
; SYM-NEXT: Section: .tdata
|
|
; SYM-NEXT: Type: 0x0
|
|
; SYM-NEXT: StorageClass: C_WEAKEXT (0x6F)
|
|
; SYM-NEXT: NumberOfAuxEntries: 1
|
|
; SYM-NEXT: CSECT Auxiliary Entry {
|
|
; SYM-NEXT: Index: [[#NFA+32]]
|
|
; SYM-NEXT: SectionLen: 8
|
|
; SYM-NEXT: ParameterHashIndex: 0x0
|
|
; SYM-NEXT: TypeChkSectNum: 0x0
|
|
; SYM-NEXT: SymbolAlignmentLog2: 3
|
|
; SYM-NEXT: SymbolType: XTY_SD (0x1)
|
|
; SYM-NEXT: StorageMappingClass: XMC_TL (0x14)
|
|
; SYM-NEXT: StabInfoIndex: 0x0
|
|
; SYM-NEXT: StabSectNum: 0x0
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: }
|
|
; SYM-NEXT: ]
|
|
|
|
; DIS: file format aixcoff-rs6000
|
|
; DIS: Disassembly of section .text:
|
|
; DIS: 00000000 (idx: [[#INDX:]]) .storesTIInit:
|
|
; DIS-NEXT: mflr 0
|
|
; DIS-NEXT: stwu 1, -32(1)
|
|
; DIS-NEXT: stw 0, 40(1)
|
|
; DIS-NEXT: mr 7, 3
|
|
; DIS-NEXT: [[#%x, ADDR:]]: {{.*}} addis 8, 2, 0
|
|
; DIS-NEXT: {{0*}}[[#ADDR + 2]]: R_TOCU (idx: [[#NFA+19]]) TIInit[TE]
|
|
; DIS-NEXT: [[#%x, ADDR:]]: {{.*}} addis 3, 2, 0
|
|
; DIS-NEXT: {{0*}}[[#ADDR + 2]]: R_TOCU (idx: [[#NFA+21]]) _$TLSML[TC]
|
|
; DIS-NEXT: mr 6, 4
|
|
; DIS-NEXT: [[#%x, ADDR:]]: {{.*}} lwz 3, 4(3)
|
|
; DIS-NEXT: {{0*}}[[#ADDR + 2]]: R_TOCL (idx: [[#NFA+21]]) _$TLSML[TC]
|
|
; DIS-NEXT: [[#%x, ADDR:]]: {{.*}} bla 0x0
|
|
; DIS-NEXT: {{0*}}[[#ADDR]]: R_RBA (idx: [[#NFA+1]]) .__tls_get_mod[PR]
|
|
; DIS-NEXT: [[#%x, ADDR:]]: {{.*}} lwz 4, 0(8)
|
|
; DIS-NEXT: {{0*}}[[#ADDR + 2]]: R_TOCL (idx: [[#NFA+19]]) TIInit[TE]
|
|
; DIS-NEXT: stwux 7, 3, 4
|
|
; DIS-NEXT: stw 6, 4(3)
|
|
; DIS-NEXT: addi 1, 1, 32
|
|
; DIS-NEXT: lwz 0, 8(1)
|
|
; DIS-NEXT: mtlr 0
|
|
; DIS-NEXT: blr
|
|
; DIS: 00000040 (idx: [[#INDX+2]]) .loadsTWInit:
|
|
; DIS-NEXT: mflr 0
|
|
; DIS-NEXT: stwu 1, -32(1)
|
|
; DIS-NEXT: stw 0, 40(1)
|
|
; DIS-NEXT: [[#%x, ADDR:]]: {{.*}} addis 3, 2, 0
|
|
; DIS-NEXT: {{0*}}[[#ADDR + 2]]: R_TOCU (idx: [[#NFA+23]]) .TWInit[TE]
|
|
; DIS-NEXT: [[#%x, ADDR:]]: {{.*}} addis 4, 2, 0
|
|
; DIS-NEXT: {{0*}}[[#ADDR + 2]]: R_TOCU (idx: [[#NFA+25]]) TWInit[TE]
|
|
; DIS-NEXT: [[#%x, ADDR:]]: {{.*}} lwz 3, 8(3)
|
|
; DIS-NEXT: {{0*}}[[#ADDR + 2]]: R_TOCL (idx: [[#NFA+23]]) .TWInit[TE]
|
|
; DIS-NEXT: [[#%x, ADDR:]]: {{.*}} lwz 4, 12(4)
|
|
; DIS-NEXT: {{0*}}[[#ADDR + 2]]: R_TOCL (idx: [[#NFA+25]]) TWInit[TE]
|
|
; DIS-NEXT: [[#%x, ADDR:]]: {{.*}} bla 0
|
|
; DIS-NEXT: {{0*}}[[#ADDR]]: R_RBA (idx: [[#NFA+3]]) .__tls_get_addr[PR]
|
|
; DIS-NEXT: lfd 0, 0(3)
|
|
; DIS-NEXT: [[#%x, ADDR:]]: {{.*}} addis 3, 2, 0
|
|
; DIS-NEXT: {{0*}}[[#ADDR + 2]]: R_TOCU (idx: [[#NFA+27]]) GInit[TE]
|
|
; DIS-NEXT: [[#%x, ADDR:]]: {{.*}} lwz 3, 16(3)
|
|
; DIS-NEXT: {{0*}}[[#ADDR + 2]]: R_TOCL (idx: [[#NFA+27]]) GInit[TE]
|
|
; DIS-NEXT: lfd 1, 0(3)
|
|
; DIS-NEXT: fadd 1, 0, 1
|
|
; DIS-NEXT: addi 1, 1, 32
|
|
; DIS-NEXT: lwz 0, 8(1)
|
|
; DIS-NEXT: mtlr 0
|
|
; DIS-NEXT: blr
|
|
|
|
; DIS: Disassembly of section .data:
|
|
; DIS: 00000088 (idx: [[#NFA+11]]) GInit[RW]:
|
|
; DIS-NEXT: 88: 3f f0 00 00
|
|
; DIS-NEXT: 8c: 00 00 00 00
|
|
; DIS: 00000090 (idx: [[#NFA+13]]) storesTIInit[DS]:
|
|
; DIS-NEXT: 90: 00 00 00 00
|
|
; DIS-NEXT: 00000090: R_POS (idx: [[#NFA+7]]) .storesTIInit
|
|
; DIS-NEXT: 94: 00 00 00 a8
|
|
; DIS-NEXT: 00000094: R_POS (idx: [[#NFA+17]]) TOC[TC0]
|
|
; DIS-NEXT: 98: 00 00 00 00
|
|
; DIS: 0000009c (idx: [[#NFA+15]]) loadsTWInit[DS]:
|
|
; DIS-NEXT: 9c: 00 00 00 40
|
|
; DIS-NEXT: 0000009c: R_POS (idx: [[#NFA+9]]) .loadsTWInit
|
|
; DIS-NEXT: a0: 00 00 00 a8
|
|
; DIS-NEXT: 000000a0: R_POS (idx: [[#NFA+17]]) TOC[TC0]
|
|
; DIS-NEXT: a4: 00 00 00 00
|
|
; DIS: 000000a8 (idx: [[#NFA+19]]) TIInit[TE]:
|
|
; DIS-NEXT: a8: 00 00 00 00
|
|
; DIS-NEXT: 000000a8: R_TLS_LD (idx: [[#NFA+29]]) TIInit[TL]
|
|
; DIS: 000000ac (idx: [[#NFA+21]]) _$TLSML[TC]:
|
|
; DIS-NEXT: ac: 00 00 00 00
|
|
; DIS-NEXT: 000000ac: R_TLSML (idx: [[#NFA+21]]) _$TLSML[TC]
|
|
; DIS: 000000b0 (idx: [[#NFA+23]]) .TWInit[TE]:
|
|
; DIS-NEXT: b0: 00 00 00 00
|
|
; DIS-NEXT: 000000b0: R_TLSM (idx: [[#NFA+31]]) TWInit[TL]
|
|
; DIS: 000000b4 (idx: [[#NFA+25]]) TWInit[TE]:
|
|
; DIS-NEXT: b4: 00 00 00 08
|
|
; DIS-NEXT: 000000b4: R_TLS (idx: [[#NFA+31]]) TWInit[TL]
|
|
; DIS: 000000b8 (idx: [[#NFA+27]]) GInit[TE]:
|
|
; DIS-NEXT: b8: 00 00 00 88
|
|
; DIS-NEXT: 000000b8: R_POS (idx: [[#NFA+11]]) GInit[RW]
|
|
|
|
; DIS: Disassembly of section .tdata:
|
|
; DIS: 00000000 (idx: [[#NFA+29]]) TIInit[TL]:
|
|
; DIS-NEXT: 0: 00 00 00 00
|
|
; DIS-NEXT: 4: 00 00 00 01
|
|
; DIS: 00000008 (idx: [[#NFA+31]]) TWInit[TL]:
|
|
; DIS-NEXT: 8: 3f f0 00 00
|
|
; DIS-NEXT: c: 00 00 00 00
|
|
|
|
attributes #0 = { nofree norecurse nounwind willreturn writeonly "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="pwr4" "target-features"="-altivec,-bpermd,-crypto,-direct-move,-extdiv,-float128,-htm,-mma,-paired-vector-memops,-power10-vector,-power8-vector,-power9-vector,-spe,-vsx" }
|
|
attributes #1 = { norecurse nounwind readonly willreturn "frame-pointer"="none" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="pwr4" "target-features"="-altivec,-bpermd,-crypto,-direct-move,-extdiv,-float128,-htm,-mma,-paired-vector-memops,-power10-vector,-power8-vector,-power9-vector,-spe,-vsx" }
|