1 ;; Test to make sure a symbol name that starts with an 'L' could be succesfully
2 ;; consumed. Note that this could fail if PrivateGlobalPrefix returns
3 ;; 'L'/'.L' instead of 'L..' because the resulting symbol gets created as
6 ; RUN: llc -verify-machineinstrs -mtriple powerpc-ibm-aix-xcoff -mcpu=pwr4 \
7 ; RUN: -mattr=-altivec -filetype=obj -o %t.o < %s
8 ; RUN: llvm-readobj --symbols %t.o | FileCheck --check-prefixes=XCOFF,XCOFF32 %s
10 ; RUN: llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff -mcpu=pwr4 \
11 ; RUN: -mattr=-altivec -filetype=obj -o %t64.o < %s
12 ; RUN: llvm-readobj --symbols %t64.o | FileCheck --check-prefixes=XCOFF,XCOFF64 %s
14 @La = external global i32, align 4
20 store i32 1, ptr @La, align 4
25 ; XCOFF: Index: [[#IND:]]{{.*}}{{[[:space:]] *}}Name: .Lb
26 ; XCOFF-NEXT: Value (RelocatableAddress): 0x0
27 ; XCOFF-NEXT: Section: N_UNDEF
28 ; XCOFF-NEXT: Type: 0x0
29 ; XCOFF-NEXT: StorageClass: C_EXT (0x2)
30 ; XCOFF-NEXT: NumberOfAuxEntries: 1
31 ; XCOFF-NEXT: CSECT Auxiliary Entry {
32 ; XCOFF-NEXT: Index: [[#IND+1]]
33 ; XCOFF-NEXT: SectionLen: 0
34 ; XCOFF-NEXT: ParameterHashIndex: 0x0
35 ; XCOFF-NEXT: TypeChkSectNum: 0x0
36 ; XCOFF-NEXT: SymbolAlignmentLog2: 0
37 ; XCOFF-NEXT: SymbolType: XTY_ER (0x0)
38 ; XCOFF-NEXT: StorageMappingClass: XMC_PR (0x0)
39 ; XCOFF32-NEXT: StabInfoIndex: 0x0
40 ; XCOFF32-NEXT: StabSectNum: 0x0
41 ; XCOFF64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)
44 ; XCOFF-NEXT: Symbol {
45 ; XCOFF-NEXT: Index: [[#IND+2]]
46 ; XCOFF-NEXT: Name: La
47 ; XCOFF-NEXT: Value (RelocatableAddress): 0x0
48 ; XCOFF-NEXT: Section: N_UNDEF
49 ; XCOFF-NEXT: Type: 0x0
50 ; XCOFF-NEXT: StorageClass: C_EXT (0x2)
51 ; XCOFF-NEXT: NumberOfAuxEntries: 1
52 ; XCOFF-NEXT: CSECT Auxiliary Entry {
53 ; XCOFF-NEXT: Index: [[#IND+3]]
54 ; XCOFF-NEXT: SectionLen: 0
55 ; XCOFF-NEXT: ParameterHashIndex: 0x0
56 ; XCOFF-NEXT: TypeChkSectNum: 0x0
57 ; XCOFF-NEXT: SymbolAlignmentLog2: 0
58 ; XCOFF-NEXT: SymbolType: XTY_ER (0x0)
59 ; XCOFF-NEXT: StorageMappingClass: XMC_UA (0x4)
60 ; XCOFF32-NEXT: StabInfoIndex: 0x0
61 ; XCOFF32-NEXT: StabSectNum: 0x0
62 ; XCOFF64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)