1 ; This test tries to verify if a csect containing code would have the correct alignment.
3 ; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec -mtriple powerpc-ibm-aix-xcoff \
4 ; RUN: -xcoff-traceback-table=false < %s | FileCheck %s
5 ; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec -mtriple powerpc64-ibm-aix-xcoff \
6 ; RUN: -xcoff-traceback-table=false < %s | FileCheck %s
8 ; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec -mtriple powerpc-ibm-aix-xcoff \
9 ; RUN: -xcoff-traceback-table=false -filetype=obj -o %t.o < %s
10 ; RUN: llvm-readobj --syms %t.o | FileCheck --check-prefixes=SYMS,SYMS32 %s
12 ; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec -mtriple powerpc64-ibm-aix-xcoff \
13 ; RUN: -xcoff-traceback-table=false -filetype=obj -o %t64.o < %s
14 ; RUN: llvm-readobj --syms %t64.o | FileCheck --check-prefixes=SYMS,SYMS64 %s
16 define i32 @foo() align 32 {
21 define i32 @bar() align 64 {
26 ; CHECK: .csect [PR],6
29 ; CHECK: .csect [PR],6
32 ; SYMS: Symbol {{[{][[:space:]] *}}Index: [[#INDX:]]{{[[:space:]] *Name: $}}
33 ; SYMS-NEXT: Value (RelocatableAddress): 0x0
34 ; SYMS-NEXT: Section: .text
35 ; SYMS-NEXT: Type: 0x0
36 ; SYMS-NEXT: StorageClass: C_HIDEXT (0x6B)
37 ; SYMS-NEXT: NumberOfAuxEntries: 1
38 ; SYMS-NEXT: CSECT Auxiliary Entry {
39 ; SYMS-NEXT: Index: [[#INDX+1]]
40 ; SYMS-NEXT: SectionLen: 72
41 ; SYMS-NEXT: ParameterHashIndex: 0x0
42 ; SYMS-NEXT: TypeChkSectNum: 0x0
43 ; SYMS-NEXT: SymbolAlignmentLog2: 6
44 ; SYMS-NEXT: SymbolType: XTY_SD (0x1)
45 ; SYMS-NEXT: StorageMappingClass: XMC_PR (0x0)
46 ; SYMS32-NEXT: StabInfoIndex: 0x0
47 ; SYMS32-NEXT: StabSectNum: 0x0
48 ; SYMS64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)