[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / MachO / zero-space.s
blobe809aa70f7fb2b63883f05d336f77aacde744616
1 // RUN: llvm-mc -triple x86_64-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --file-headers -S --sd -r --symbols --macho-segment --macho-dysymtab --macho-indirect-symbols | FileCheck %s
3 .const
4 .p2align 6
5 Lzero:
6 .space 64
7 .zero 64
9 // CHECK: File: <stdin>
10 // CHECK-NEXT: Format: Mach-O 64-bit x86-64
11 // CHECK-NEXT: Arch: x86_64
12 // CHECK-NEXT: AddressSize: 64bit
13 // CHECK-NEXT: MachHeader {
14 // CHECK-NEXT: Magic: Magic64 (0xFEEDFACF)
15 // CHECK-NEXT: CpuType: X86-64 (0x1000007)
16 // CHECK-NEXT: CpuSubType: CPU_SUBTYPE_X86_64_ALL (0x3)
17 // CHECK-NEXT: FileType: Relocatable (0x1)
18 // CHECK-NEXT: NumOfLoadCommands: 2
19 // CHECK-NEXT: SizeOfLoadCommands: 248
20 // CHECK-NEXT: Flags [ (0x0)
21 // CHECK-NEXT: ]
22 // CHECK-NEXT: Reserved: 0x0
23 // CHECK-NEXT: }
24 // CHECK-NEXT: Sections [
25 // CHECK-NEXT: Section {
26 // CHECK-NEXT: Index: 0
27 // CHECK-NEXT: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
28 // CHECK-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
29 // CHECK-NEXT: Address: 0x0
30 // CHECK-NEXT: Size: 0x0
31 // CHECK-NEXT: Offset: 280
32 // CHECK-NEXT: Alignment: 0
33 // CHECK-NEXT: RelocationOffset: 0x0
34 // CHECK-NEXT: RelocationCount: 0
35 // CHECK-NEXT: Type: Regular (0x0)
36 // CHECK-NEXT: Attributes [ (0x800000)
37 // CHECK-NEXT: PureInstructions (0x800000)
38 // CHECK-NEXT: ]
39 // CHECK-NEXT: Reserved1: 0x0
40 // CHECK-NEXT: Reserved2: 0x0
41 // CHECK-NEXT: Reserved3: 0x0
42 // CHECK-NEXT: SectionData (
43 // CHECK-NEXT: )
44 // CHECK-NEXT: }
45 // CHECK-NEXT: Section {
46 // CHECK-NEXT: Index: 1
47 // CHECK-NEXT: Name: __const (5F 5F 63 6F 6E 73 74 00 00 00 00 00 00 00 00 00)
48 // CHECK-NEXT: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
49 // CHECK-NEXT: Address: 0x0
50 // CHECK-NEXT: Size: 0x80
51 // CHECK-NEXT: Offset: 280
52 // CHECK-NEXT: Alignment: 6
53 // CHECK-NEXT: RelocationOffset: 0x0
54 // CHECK-NEXT: RelocationCount: 0
55 // CHECK-NEXT: Type: Regular (0x0)
56 // CHECK-NEXT: Attributes [ (0x0)
57 // CHECK-NEXT: ]
58 // CHECK-NEXT: Reserved1: 0x0
59 // CHECK-NEXT: Reserved2: 0x0
60 // CHECK-NEXT: Reserved3: 0x0
61 // CHECK-NEXT: SectionData (
62 // CHECK-NEXT: 0000: 00000000 00000000 00000000 00000000 |................|
63 // CHECK-NEXT: 0010: 00000000 00000000 00000000 00000000 |................|
64 // CHECK-NEXT: 0020: 00000000 00000000 00000000 00000000 |................|
65 // CHECK-NEXT: 0030: 00000000 00000000 00000000 00000000 |................|
66 // CHECK-NEXT: 0040: 00000000 00000000 00000000 00000000 |................|
67 // CHECK-NEXT: 0050: 00000000 00000000 00000000 00000000 |................|
68 // CHECK-NEXT: 0060: 00000000 00000000 00000000 00000000 |................|
69 // CHECK-NEXT: 0070: 00000000 00000000 00000000 00000000 |................|
70 // CHECK-NEXT: )
71 // CHECK-NEXT: }
72 // CHECK-NEXT: ]
73 // CHECK-NEXT: Relocations [
74 // CHECK-NEXT: ]
75 // CHECK-NEXT: Symbols [
76 // CHECK-NEXT: ]
77 // CHECK-NEXT: Segment {
78 // CHECK-NEXT: Cmd: LC_SEGMENT_64
79 // CHECK-NEXT: Name:
80 // CHECK-NEXT: Size: 232
81 // CHECK-NEXT: vmaddr: 0x0
82 // CHECK-NEXT: vmsize: 0x80
83 // CHECK-NEXT: fileoff: 280
84 // CHECK-NEXT: filesize: 128
85 // CHECK-NEXT: maxprot: rwx
86 // CHECK-NEXT: initprot: rwx
87 // CHECK-NEXT: nsects: 2
88 // CHECK-NEXT: flags: 0x0
89 // CHECK-NEXT: }