aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/COFF
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-09-07 21:08:01 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-09-07 21:08:01 +0000
commita9e37c5eaf79c3a32f2921536fb7e12514e86fb2 (patch)
treeb0906a5545739e94cfa1a199df774d59929bba12 /test/MC/COFF
parentb72a90e05b296d13b6fb4efc54eee9f6f5c0ea7b (diff)
downloadexternal_llvm-a9e37c5eaf79c3a32f2921536fb7e12514e86fb2.zip
external_llvm-a9e37c5eaf79c3a32f2921536fb7e12514e86fb2.tar.gz
external_llvm-a9e37c5eaf79c3a32f2921536fb7e12514e86fb2.tar.bz2
Fix alignment of .comm and .lcomm on mingw32.
For some reason .lcomm uses byte alignment and .comm log2 alignment so we can't use the same setting for both. Fix this by reintroducing the LCOMM enum. I verified this against mingw's gcc. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/COFF')
-rw-r--r--test/MC/COFF/comm.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/MC/COFF/comm.ll b/test/MC/COFF/comm.ll
new file mode 100644
index 0000000..74da557
--- /dev/null
+++ b/test/MC/COFF/comm.ll
@@ -0,0 +1,13 @@
+; RUN: llc -mtriple i386-pc-mingw32 < %s | FileCheck %s
+
+@a = internal global i8 0, align 1
+@b = internal global double 0.000000e+00, align 8
+@c = common global i8 0, align 1
+@d = common global double 0.000000e+00, align 8
+
+; .lcomm uses byte alignment
+; CHECK: .lcomm _a,1
+; CHECK: .lcomm _b,8,8
+; .comm uses log2 alignment
+; CHECK: .comm _c,1,0
+; CHECK: .comm _d,8,3