diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-21 23:07:38 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-21 23:07:38 +0000 |
commit | 3d153ff2f9b02dfed57352ab3102c5852d178b06 (patch) | |
tree | 8bfb00541414771ea0d63a51849f3d3b532b262a /test/MC | |
parent | 581ed7a565878bbec9cf31b4a52b2ca96f074246 (diff) | |
download | external_llvm-3d153ff2f9b02dfed57352ab3102c5852d178b06.zip external_llvm-3d153ff2f9b02dfed57352ab3102c5852d178b06.tar.gz external_llvm-3d153ff2f9b02dfed57352ab3102c5852d178b06.tar.bz2 |
llvm-mc/Mach-O: Support .o emission for .org and .align.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79684 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/MachO/data.s | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/test/MC/MachO/data.s b/test/MC/MachO/data.s index 3d39b53..56979b6 100644 --- a/test/MC/MachO/data.s +++ b/test/MC/MachO/data.s @@ -6,6 +6,13 @@ .short 0xABCD .long 0xABCDABCD .quad 0xABCDABCDABCDABCD +.org 30 + .long 0xF000 // 34 + .p2align 3, 0xAB // 40 (0xAB * 6) + .short 0 // 42 + .p2alignw 3, 0xABCD // 48 (0xABCD * 2) + .short 0 // 50 + .p2alignw 3, 0xABCD, 5 // 50 // CHECK: ('cputype', 7) // CHECK: ('cpusubtype', 3) @@ -19,9 +26,9 @@ // CHECK: ('size', 192) // CHECK: ('segment_name', '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') // CHECK: ('vm_addr', 0) -// CHECK: ('vm_size', 20) +// CHECK: ('vm_size', 50) // CHECK: ('file_offset', 220) -// CHECK: ('file_size', 20) +// CHECK: ('file_size', 50) // CHECK: ('maxprot', 7) // CHECK: ('initprot', 7) // CHECK: ('num_sections', 2) @@ -44,9 +51,9 @@ // CHECK: (('section_name', '__data\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') // CHECK: ('segment_name', '__DATA\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00') // CHECK: ('address', 0) -// CHECK: ('size', 20) +// CHECK: ('size', 50) // CHECK: ('offset', 220) -// CHECK: ('alignment', 0) +// CHECK: ('alignment', 3) // CHECK: ('reloc_offset', 0) // CHECK: ('num_reloc', 0) // CHECK: ('flags', 0x0) |