diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-02 19:48:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-02 19:48:24 +0000 |
commit | e2620add35f0118a436a2caf521db1c634145305 (patch) | |
tree | 31ca52aba6fbeff6fc55dc64bdd93ae22a2d0764 /test/CodeGen/X86/aligned-comm.ll | |
parent | 7ad92d81e2c2d1fe8ae89e5638fc57925d747429 (diff) | |
download | llvm-e2620add35f0118a436a2caf521db1c634145305.tar.gz llvm-e2620add35f0118a436a2caf521db1c634145305.tar.bz2 llvm-e2620add35f0118a436a2caf521db1c634145305.tar.xz |
verify that aligned common support doesn't break.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45495 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/aligned-comm.ll')
-rw-r--r-- | test/CodeGen/X86/aligned-comm.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/aligned-comm.ll b/test/CodeGen/X86/aligned-comm.ll new file mode 100644 index 0000000000..10c68d8275 --- /dev/null +++ b/test/CodeGen/X86/aligned-comm.ll @@ -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 |