[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / MachO / file.s
blob0076fa5647023df59fb3e90f2785b0c4e9921978
1 // RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | llvm-readobj -S --section-data | FileCheck %s
3 // This number-less file directive is ignored on MachO.
4 .file "bar/baz.s"
6 .file 1 "dir/foo"
7 nop
9 // CHECK: Section {
10 // CHECK: Index: 1
11 // CHECK-NEXT: Name: __debug_line
12 // CHECK-NEXT: Segment: __DWARF
13 // CHECK-NEXT: Address: 0x1
14 // CHECK-NEXT: Size: 0x29
15 // CHECK-NEXT: Offset: 237
16 // CHECK-NEXT: Alignment: 0
17 // CHECK-NEXT: RelocationOffset: 0x0
18 // CHECK-NEXT: RelocationCount: 0
19 // CHECK-NEXT: Type: Regular (0x0)
20 // CHECK-NEXT: Attributes [ (0x20000)
21 // CHECK-NEXT: Debug (0x20000)
22 // CHECK-NEXT: ]
23 // CHECK-NEXT: Reserved1: 0x0
24 // CHECK-NEXT: Reserved2: 0x0
25 // CHECK-NEXT: SectionData (
26 // CHECK-NEXT: 000: 25000000 04001F00 00000101 01FB0E0D |%...............|
27 // CHECK-NEXT: 010: 00010101 01000000 01000001 64697200 |............dir.|
28 // CHECK-NEXT: 020: 00666F6F 00010000 00 |.foo.....|
29 // CHECK-NEXT: )
30 // CHECK-NEXT: }