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-prefix=SYMS %s
11
12;; FIXME: currently only fileHeader and sectionHeaders are supported in XCOFF64.
13
14define i32 @foo()  align 32 {
15entry:
16  ret i32 0
17}
18
19define i32 @bar()  align 64 {
20entry:
21  ret i32 0
22}
23
24; CHECK:      .csect .text[PR],6
25; CHECK-NEXT: .foo:
26
27; CHECK:      .csect .text[PR],6
28; CHECK-NEXT: .bar:
29
30; SYMS:       Symbol {{[{][[:space:]] *}}Index: [[#INDX:]]{{[[:space:]] *}}Name: .text
31; SYMS-NEXT:    Value (RelocatableAddress): 0x0
32; SYMS-NEXT:    Section: .text
33; SYMS-NEXT:    Type: 0x0
34; SYMS-NEXT:    StorageClass: C_HIDEXT (0x6B)
35; SYMS-NEXT:    NumberOfAuxEntries: 1
36; SYMS-NEXT:    CSECT Auxiliary Entry {
37; SYMS-NEXT:      Index: [[#INDX+1]]
38; SYMS-NEXT:      SectionLen: 72
39; SYMS-NEXT:      ParameterHashIndex: 0x0
40; SYMS-NEXT:      TypeChkSectNum: 0x0
41; SYMS-NEXT:      SymbolAlignmentLog2: 6
42; SYMS-NEXT:      SymbolType: XTY_SD (0x1)
43; SYMS-NEXT:      StorageMappingClass: XMC_PR (0x0)
44; SYMS-NEXT:      StabInfoIndex: 0x0
45; SYMS-NEXT:      StabSectNum: 0x0
46; SYMS-NEXT:    }
47; SYMS-NEXT:  }
48