• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple powerpc-ibm-aix -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec \
2; RUN: -filetype=obj -o %t.o < %s
3; RUN: llvm-readobj --syms %t.o | FileCheck %s
4; RUN: not --crash llc -mtriple powerpc64-ibm-aix -verify-machineinstrs -mcpu=pwr4 -mattr=-altivec \
5; RUN: -filetype=obj -o %t.o < %s 2>&1 | FileCheck --check-prefix=64-CHECK %s
6
7define internal i32 @foo() {
8  ret i32 1
9}
10
11; CHECK:  Symbol {
12; CHECK:       Name: .foo
13; CHECK-NEXT:  Value (RelocatableAddress):
14; CHECK-NEXT:  Section: .text
15; CHECK-NEXT:  Type: 0x0
16; CHECK-NEXT:  StorageClass: C_HIDEXT (0x6B)
17
18; CHECK:  Symbol {
19; CHECK-NEXT: Index: [[#INDX:]]
20; CHECK-NEXT: Name: foo
21; CHECK-NEXT: Value (RelocatableAddress):
22; CHECK-NEXT: Section: .data
23; CHECK-NEXT: Type: 0x0
24; CHECK-NEXT: StorageClass: C_HIDEXT (0x6B)
25; CHECK-NEXT: NumberOfAuxEntries: 1
26; CHECK-NEXT: CSECT Auxiliary Entry {
27; CHECK-NEXT:  Index: [[#INDX+1]]
28; CHECK-NEXT:  SectionLen: 12
29; CHECK-NEXT:  ParameterHashIndex:
30; CHECK-NEXT:  TypeChkSectNum:
31; CHECK-NEXT:  SymbolAlignmentLog2:
32; CHECK-NEXT:  SymbolType: XTY_SD (0x1)
33; CHECK-NEXT:  StorageMappingClass: XMC_DS (0xA)
34
35; Make sure no label is emitted.
36; CHECK-NOT: Name: foo
37
38;64-CHECK: LLVM ERROR: 64-bit XCOFF object files are not supported yet.
39