summaryrefslogtreecommitdiff
path: root/test/CodeGen
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2010-01-26 20:21:43 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2010-01-26 20:21:43 +0000
commit2e2563bf8e0f0a7f8c923000c0206855f16968b2 (patch)
tree8bde9acbfe36cb0089d7e16f7e6349f510b1feb9 /test/CodeGen
parent6a315c358ca35625ffd50fdc74556acb26ec7396 (diff)
downloadllvm-2e2563bf8e0f0a7f8c923000c0206855f16968b2.tar.gz
llvm-2e2563bf8e0f0a7f8c923000c0206855f16968b2.tar.bz2
llvm-2e2563bf8e0f0a7f8c923000c0206855f16968b2.tar.xz
Emit .comm alignment in bytes but .align in powers of 2 for ARM ELF.
Original patch by Sandeep Patel and updated by me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/ARM/align.ll10
-rw-r--r--test/CodeGen/ARM/globals.ll4
2 files changed, 7 insertions, 7 deletions
diff --git a/test/CodeGen/ARM/align.ll b/test/CodeGen/ARM/align.ll
index 492d7af4e7..d4d01288f2 100644
--- a/test/CodeGen/ARM/align.ll
+++ b/test/CodeGen/ARM/align.ll
@@ -8,31 +8,31 @@
; no alignment
@c = global i16 2
-;ELF: .align 2
+;ELF: .align 1
;ELF: c:
;DARWIN: .align 1
;DARWIN: _c:
@d = global i32 3
-;ELF: .align 4
+;ELF: .align 2
;ELF: d:
;DARWIN: .align 2
;DARWIN: _d:
@e = global i64 4
-;ELF: .align 8
+;ELF: .align 3
;ELF: e
;DARWIN: .align 2
;DARWIN: _e:
@f = global float 5.0
-;ELF: .align 4
+;ELF: .align 2
;ELF: f:
;DARWIN: .align 2
;DARWIN: _f:
@g = global double 6.0
-;ELF: .align 8
+;ELF: .align 3
;ELF: g:
;DARWIN: .align 2
;DARWIN: _g:
diff --git a/test/CodeGen/ARM/globals.ll b/test/CodeGen/ARM/globals.ll
index 83849f4232..886c0d55cf 100644
--- a/test/CodeGen/ARM/globals.ll
+++ b/test/CodeGen/ARM/globals.ll
@@ -67,9 +67,9 @@ define i32 @test1() {
; LinuxPIC: ldr r0, [r0]
; LinuxPIC: bx lr
-; LinuxPIC: .align 4
+; LinuxPIC: .align 2
; LinuxPIC: .LCPI1_0:
; LinuxPIC: .long _GLOBAL_OFFSET_TABLE_-(.LPC1_0+8)
-; LinuxPIC: .align 4
+; LinuxPIC: .align 2
; LinuxPIC: .LCPI1_1:
; LinuxPIC: .long G(GOT)