summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/elf-lcomm-align.ll
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2012-11-27 16:11:16 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2012-11-27 16:11:16 +0000
commitdba37a3c43b79be8a54d5e07ff390b621da5958d (patch)
treed25d2cca186bdd9f0e0294e0e0fde0247540795d /test/CodeGen/ARM/elf-lcomm-align.ll
parent76f8eda28412c37ae38d82bb54d5dfa49045df8d (diff)
Never use .lcomm on platforms where it does not accept an alignment
argument. Instead, use a pair of .local and .comm directives. This avoids spurious differences between binaries built by the integrated assembler vs. those built by the external assembler, since the external assembler may impose alignment requirements on .lcomm symbols where the integrated assembler does not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/elf-lcomm-align.ll')
-rw-r--r--test/CodeGen/ARM/elf-lcomm-align.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/CodeGen/ARM/elf-lcomm-align.ll b/test/CodeGen/ARM/elf-lcomm-align.ll
index 46792990e59..a98b3c06f5e 100644
--- a/test/CodeGen/ARM/elf-lcomm-align.ll
+++ b/test/CodeGen/ARM/elf-lcomm-align.ll
@@ -4,8 +4,9 @@
@c = internal global i8 0, align 1
@x = internal global i32 0, align 4
-; CHECK: .lcomm c,1
-; .lcomm doesn't support alignment.
+; .lcomm doesn't support alignment, so we always use .local/.comm.
+; CHECK: .local c
+; CHECK-NEXT: .comm c,1,1
; CHECK: .local x
; CHECK-NEXT: .comm x,4,4