[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / MachO / section-align-1.s
blobfa697af58b5e73c7dca46f48ff03a2c1db5fc2f5
1 // RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj --symbols --file-headers -S --macho-indirect-symbols --macho-dysymtab --macho-segment | FileCheck %s
3 name:
4 .byte 0
6 // Check that symbol table is aligned to 4 bytes.
8 // CHECK: File: <stdin>
9 // CHECK: Format: Mach-O 32-bit i386
10 // CHECK: Arch: i386
11 // CHECK: AddressSize: 32bit
12 // CHECK: MachHeader {
13 // CHECK: Magic: Magic (0xFEEDFACE)
14 // CHECK: CpuType: X86 (0x7)
15 // CHECK: CpuSubType: CPU_SUBTYPE_I386_ALL (0x3)
16 // CHECK: FileType: Relocatable (0x1)
17 // CHECK: NumOfLoadCommands: 4
18 // CHECK: SizeOfLoadCommands: 244
19 // CHECK: Flags [ (0x0)
20 // CHECK: ]
21 // CHECK: }
22 // CHECK: Sections [
23 // CHECK: Section {
24 // CHECK: Index: 0
25 // CHECK: Name: __text (5F 5F 74 65 78 74 00 00 00 00 00 00 00 00 00 00)
26 // CHECK: Segment: __TEXT (5F 5F 54 45 58 54 00 00 00 00 00 00 00 00 00 00)
27 // CHECK: Address: 0x0
28 // CHECK: Size: 0x1
29 // CHECK: Offset: 272
30 // CHECK: Alignment: 0
31 // CHECK: RelocationOffset: 0x0
32 // CHECK: RelocationCount: 0
33 // CHECK: Type: Regular (0x0)
34 // CHECK: Attributes [ (0x800000)
35 // CHECK: PureInstructions (0x800000)
36 // CHECK: ]
37 // CHECK: Reserved1: 0x0
38 // CHECK: Reserved2: 0x0
39 // CHECK: }
40 // CHECK: ]
41 // CHECK: Symbols [
42 // CHECK: Symbol {
43 // CHECK: Name: name (1)
44 // CHECK: Type: Section (0xE)
45 // CHECK: Section: __text (0x1)
46 // CHECK: RefType: UndefinedNonLazy (0x0)
47 // CHECK: Flags [ (0x0)
48 // CHECK: ]
49 // CHECK: Value: 0x0
50 // CHECK: }
51 // CHECK: ]
52 // CHECK: Indirect Symbols {
53 // CHECK: Number: 0
54 // CHECK: Symbols [
55 // CHECK: ]
56 // CHECK: }
57 // CHECK: Segment {
58 // CHECK: Cmd: LC_SEGMENT
59 // CHECK: Name:
60 // CHECK: Size: 124
61 // CHECK: vmaddr: 0x0
62 // CHECK: vmsize: 0x1
63 // CHECK: fileoff: 272
64 // CHECK: filesize: 1
65 // CHECK: maxprot: rwx
66 // CHECK: initprot: rwx
67 // CHECK: nsects: 1
68 // CHECK: flags: 0x0
69 // CHECK: }
70 // CHECK: Dysymtab {
71 // CHECK: ilocalsym: 0
72 // CHECK: nlocalsym: 1
73 // CHECK: iextdefsym: 1
74 // CHECK: nextdefsym: 0
75 // CHECK: iundefsym: 1
76 // CHECK: nundefsym: 0
77 // CHECK: tocoff: 0
78 // CHECK: ntoc: 0
79 // CHECK: modtaboff: 0
80 // CHECK: nmodtab: 0
81 // CHECK: extrefsymoff: 0
82 // CHECK: nextrefsyms: 0
83 // CHECK: indirectsymoff: 0
84 // CHECK: nindirectsyms: 0
85 // CHECK: extreloff: 0
86 // CHECK: nextrel: 0
87 // CHECK: locreloff: 0
88 // CHECK: nlocrel: 0
89 // CHECK: }