[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / MachO / coal-sections-x86_64.s
blobf91373e079357e1f5035e29ab9e6d22e2de80968
1 // RUN: llvm-mc -triple x86_64-apple-darwin -filetype=obj %s -o - 2>%t.err | llvm-readobj --sections | FileCheck %s
2 // RUN: FileCheck --check-prefix=WARNING < %t.err %s
4 // CHECK: Section {
5 // CHECK-NEXT: Index: 0
6 // CHECK-NEXT: Name: __text (
8 // CHECK: Section {
9 // CHECK-NEXT: Index: 1
10 // CHECK-NEXT: Name: __textcoal_nt (
12 // CHECK: Section {
13 // CHECK-NEXT: Index: 2
14 // CHECK-NEXT: Name: __const_coal (
16 // CHECK: Section {
17 // CHECK-NEXT: Index: 3
18 // CHECK-NEXT: Name: __datacoal_nt (
20 // WARNING: warning: section "__textcoal_nt" is deprecated
21 // WARNING: note: change section name to "__text"
22 // WARNING: warning: section "__const_coal" is deprecated
23 // WARNING: note: change section name to "__const"
24 // WARNING: warning: section "__datacoal_nt" is deprecated
25 // WARNING: note: change section name to "__data"
27 .section __TEXT,__textcoal_nt,coalesced,pure_instructions
28 .globl _foo
29 .weak_definition _foo
30 .align 4, 0x90
31 _foo:
32 retq
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
48 .subsections_via_symbols