summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-08 22:03:42 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-08 22:03:42 +0000
commit3a3f472cb457eab29563ff4afd3ae61511eed71a (patch)
tree9fb4a75016bb914decc56166a31804f5685c766a /llvm/test
parent8119fe87d8a04810c848a94cdc8b9523d17538fd (diff)
downloadbcm5719-llvm-3a3f472cb457eab29563ff4afd3ae61511eed71a.tar.gz
bcm5719-llvm-3a3f472cb457eab29563ff4afd3ae61511eed71a.zip
MC/Macho-O: Align the zerofill section itself to the maximum alignment.
llvm-svn: 97991
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/MC/MachO/zerofill-4.s2
-rw-r--r--llvm/test/MC/MachO/zerofill-sect-align.s15
2 files changed, 16 insertions, 1 deletions
diff --git a/llvm/test/MC/MachO/zerofill-4.s b/llvm/test/MC/MachO/zerofill-4.s
index 3513be44378..d9c987c9b65 100644
--- a/llvm/test/MC/MachO/zerofill-4.s
+++ b/llvm/test/MC/MachO/zerofill-4.s
@@ -1,4 +1,4 @@
-// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s
+// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump | FileCheck %s
.zerofill __DATA,__bss,_fill0,1,0
.zerofill __DATA,__bss,_a,4,2
diff --git a/llvm/test/MC/MachO/zerofill-sect-align.s b/llvm/test/MC/MachO/zerofill-sect-align.s
new file mode 100644
index 00000000000..5d7730f439e
--- /dev/null
+++ b/llvm/test/MC/MachO/zerofill-sect-align.s
@@ -0,0 +1,15 @@
+// RUN: llvm-mc -triple i386-apple-darwin9 %s -filetype=obj -o - | macho-dump | FileCheck %s
+//
+// Check that the section itself is aligned.
+
+ .byte 0
+
+.zerofill __DATA,__bss,_a,1,0
+.zerofill __DATA,__bss,_b,4,4
+
+// CHECK: # Symbol 0
+// CHECK: ('n_value', 16)
+// CHECK: ('_string', '_a')
+// CHECK: # Symbol 1
+// CHECK: ('n_value', 32)
+// CHECK: ('_string', '_b')
OpenPOWER on IntegriCloud