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 | \
9 ; RUN: FileCheck --check-prefix=XCOFF32 %s
11 ; RUN: not --crash llc -verify-machineinstrs -mtriple powerpc64-ibm-aix-xcoff \
12 ; RUN: -mcpu=pwr4 -mattr=-altivec -filetype=obj -o %t.o 2>&1 < %s | \
13 ; RUN: FileCheck --check-prefix=XCOFF64 %s
14 ; XCOFF64: LLVM ERROR: 64-bit XCOFF object files are not supported yet.
16 @La = external global i32, align 4
22 store i32 1, i32* @La, align 4
23 call i32 bitcast (i32 (...)* @Lb to i32 ()*)()
27 ; XCOFF32: Index: [[#IND:]]{{.*}}{{[[:space:]] *}}Name: .Lb
28 ; XCOFF32-NEXT: Value (RelocatableAddress): 0x0
29 ; XCOFF32-NEXT: Section: N_UNDEF
30 ; XCOFF32-NEXT: Type: 0x0
31 ; XCOFF32-NEXT: StorageClass: C_EXT (0x2)
32 ; XCOFF32-NEXT: NumberOfAuxEntries: 1
33 ; XCOFF32-NEXT: CSECT Auxiliary Entry {
34 ; XCOFF32-NEXT: Index: [[#IND+1]]
35 ; XCOFF32-NEXT: SectionLen: 0
36 ; XCOFF32-NEXT: ParameterHashIndex: 0x0
37 ; XCOFF32-NEXT: TypeChkSectNum: 0x0
38 ; XCOFF32-NEXT: SymbolAlignmentLog2: 0
39 ; XCOFF32-NEXT: SymbolType: XTY_ER (0x0)
40 ; XCOFF32-NEXT: StorageMappingClass: XMC_PR (0x0)
41 ; XCOFF32-NEXT: StabInfoIndex: 0x0
42 ; XCOFF32-NEXT: StabSectNum: 0x0
45 ; XCOFF32-NEXT: Symbol {
46 ; XCOFF32-NEXT: Index: [[#IND+2]]
47 ; XCOFF32-NEXT: Name: La
48 ; XCOFF32-NEXT: Value (RelocatableAddress): 0x0
49 ; XCOFF32-NEXT: Section: N_UNDEF
50 ; XCOFF32-NEXT: Type: 0x0
51 ; XCOFF32-NEXT: StorageClass: C_EXT (0x2)
52 ; XCOFF32-NEXT: NumberOfAuxEntries: 1
53 ; XCOFF32-NEXT: CSECT Auxiliary Entry {
54 ; XCOFF32-NEXT: Index: [[#IND+3]]
55 ; XCOFF32-NEXT: SectionLen: 0
56 ; XCOFF32-NEXT: ParameterHashIndex: 0x0
57 ; XCOFF32-NEXT: TypeChkSectNum: 0x0
58 ; XCOFF32-NEXT: SymbolAlignmentLog2: 0
59 ; XCOFF32-NEXT: SymbolType: XTY_ER (0x0)
60 ; XCOFF32-NEXT: StorageMappingClass: XMC_UA (0x4)
61 ; XCOFF32-NEXT: StabInfoIndex: 0x0
62 ; XCOFF32-NEXT: StabSectNum: 0x0