[yaml2obj/obj2yaml] - Add support for .stack_sizes sections.
[llvm-complete.git] / test / MC / MachO / PowerPC / coal-sections-powerpc.s
blob31ea99ba71ef6e528d02f1b004e5315944ebee2f
1 // RUN: llvm-mc -triple powerpc-apple-darwin8 -arch=ppc32 -filetype=obj %s -o - | llvm-readobj --sections | FileCheck %s
3 // CHECK: Section {
4 // CHECK-NEXT: Index: 0
6 // CHECK: Section {
7 // CHECK-NEXT: Index: 1
8 // CHECK-NEXT: Name: __textcoal_nt (
10 // CHECK: Section {
11 // CHECK-NEXT: Index: 2
13 // CHECK: Section {
14 // CHECK-NEXT: Index: 3
15 // CHECK-NEXT: Name: __const_coal (
17 // CHECK: Section {
18 // CHECK-NEXT: Index: 4
19 // CHECK-NEXT: Name: __datacoal_nt (
21 .section __TEXT,__text,regular,pure_instructions
22 .machine ppc
23 .section __TEXT,__textcoal_nt,coalesced,pure_instructions
24 .section __TEXT,__symbol_stub1,symbol_stubs,pure_instructions,16
25 .section __TEXT,__text,regular,pure_instructions
26 .section __TEXT,__textcoal_nt,coalesced,pure_instructions
27 .globl _foo
28 .weak_definition _foo
29 .align 4
30 _foo:
31 blr
33 .subsections_via_symbols
34 .section __TEXT,__const_coal,coalesced
35 .globl _a ; @a
36 .weak_definition _a
37 .align 4
38 _a:
39 .long 1 ; 0x1
41 .section __DATA,__datacoal_nt,coalesced
42 .globl _b ; @b
43 .weak_definition _b
44 .align 2
45 _b:
46 .long 5 ; 0x5