summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/aligned-comm.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/aligned-comm.ll')
-rw-r--r--test/CodeGen/X86/aligned-comm.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/CodeGen/X86/aligned-comm.ll b/test/CodeGen/X86/aligned-comm.ll
new file mode 100644
index 0000000..7715869
--- /dev/null
+++ b/test/CodeGen/X86/aligned-comm.ll
@@ -0,0 +1,6 @@
+; RUN: llc < %s -march=x86
+; RUN: llc < %s -mtriple=i386-apple-darwin10 | grep {array,16512,7}
+; RUN: llc < %s -mtriple=i386-apple-darwin9 | grep {array,16512,7}
+
+; Darwin 9+ should get alignment on common symbols.
+@array = common global [4128 x i32] zeroinitializer, align 128