verify that aligned common support doesn't break.
[oota-llvm.git] / test / CodeGen / X86 / aligned-comm.ll
diff --git a/test/CodeGen/X86/aligned-comm.ll b/test/CodeGen/X86/aligned-comm.ll
new file mode 100644 (file)
index 0000000..10c68d8
--- /dev/null
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -march=x86
+; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin10 | grep {array,16512,7}
+; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin9 | grep {array,16512,7}
+; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin8 | not grep {7}
+
+; Darwin 9+ should get alignment on common symbols.  Darwin8 does 
+; not support this.
+@array = weak global [4128 x i32] zeroinitializer, align 128