1; This test tries to verify if a csect containing code would have the correct alignment. 2 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 7 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 11 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 15 16define i32 @foo() align 32 { 17entry: 18 ret i32 0 19} 20 21define i32 @bar() align 64 { 22entry: 23 ret i32 0 24} 25 26; CHECK: .csect ..text..[PR],6 27; CHECK-NEXT: .foo: 28 29; CHECK: .csect ..text..[PR],6 30; CHECK-NEXT: .bar: 31 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) 49; SYMS-NEXT: } 50; SYMS-NEXT: } 51