51 lines · plain
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 %s5; RUN: llc -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec -mtriple powerpc64-ibm-aix-xcoff \6; RUN: -xcoff-traceback-table=false < %s | FileCheck %s7 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 < %s10; RUN: llvm-readobj --syms %t.o | FileCheck --check-prefixes=SYMS,SYMS32 %s11 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 < %s14; RUN: llvm-readobj --syms %t64.o | FileCheck --check-prefixes=SYMS,SYMS64 %s15 16define i32 @foo() align 32 {17entry:18 ret i32 019}20 21define i32 @bar() align 64 {22entry:23 ret i32 024}25 26; CHECK: .csect ..text..[PR],627; CHECK-NEXT: .foo:28 29; CHECK: .csect ..text..[PR],630; CHECK-NEXT: .bar:31 32; SYMS: Symbol {{[{][[:space:]] *}}Index: [[#INDX:]]{{[[:space:]] *Name: $}}33; SYMS-NEXT: Value (RelocatableAddress): 0x034; SYMS-NEXT: Section: .text35; SYMS-NEXT: Type: 0x036; SYMS-NEXT: StorageClass: C_HIDEXT (0x6B)37; SYMS-NEXT: NumberOfAuxEntries: 138; SYMS-NEXT: CSECT Auxiliary Entry {39; SYMS-NEXT: Index: [[#INDX+1]]40; SYMS-NEXT: SectionLen: 7241; SYMS-NEXT: ParameterHashIndex: 0x042; SYMS-NEXT: TypeChkSectNum: 0x043; SYMS-NEXT: SymbolAlignmentLog2: 644; SYMS-NEXT: SymbolType: XTY_SD (0x1)45; SYMS-NEXT: StorageMappingClass: XMC_PR (0x0)46; SYMS32-NEXT: StabInfoIndex: 0x047; SYMS32-NEXT: StabSectNum: 0x048; SYMS64-NEXT: Auxiliary Type: AUX_CSECT (0xFB)49; SYMS-NEXT: }50; SYMS-NEXT: }51