diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-02-23 17:45:32 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-02-23 17:45:32 +0000 |
commit | ec1c80576d63ac4114d3d43380700117c340b9dc (patch) | |
tree | 30d8f211f2a27dc1bb2b0436e11d43b029e67b94 /test/MC | |
parent | 69f706d9e1707fe66259f3e95163c2bfa6c72883 (diff) | |
download | llvm-ec1c80576d63ac4114d3d43380700117c340b9dc.tar.gz llvm-ec1c80576d63ac4114d3d43380700117c340b9dc.tar.bz2 llvm-ec1c80576d63ac4114d3d43380700117c340b9dc.tar.xz |
ARM IAS: support .align without parameters
.align is handled specially on certain targets. .align without any parameters
on ARM indicates a default alignment (4). Handle the special case in the target
parser, but fall back to the generic parser for the normal version.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201988 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC')
-rw-r--r-- | test/MC/ARM/directive-align.s | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/MC/ARM/directive-align.s b/test/MC/ARM/directive-align.s new file mode 100644 index 0000000000..d3e39cb1c5 --- /dev/null +++ b/test/MC/ARM/directive-align.s @@ -0,0 +1,28 @@ +@ RUN: llvm-mc -triple armv7-eabi %s | FileCheck %s + + .data + +unaligned: + .byte 1 + .align + +@ CHECK-LABEL: unaligned +@ CHECK-NEXT: .byte 1 +@ CHECK-NEXT: .align 2 + +aligned: + .long 0x1d10c1e5 + .align + +@ CHECK-LABEL: aligned +@ CHECK-NEXT: .long 487637477 +@ CHECK-NEXT: .align 2 + +trailer: + .long 0xd1ab011c + .align 2 + +@ CHECK-LABEL: trailer +@ CHECK-NEXT: .long 3517645084 +@ CHECK-NEXT: .align 2 + |