diff options
author | Dan Gohman <dan433584@gmail.com> | 2016-01-26 00:03:25 +0000 |
---|---|---|
committer | Dan Gohman <dan433584@gmail.com> | 2016-01-26 00:03:25 +0000 |
commit | 61d15ae4f56474164dff42708d9f7a19bb12ba1c (patch) | |
tree | 4a63af2529f2012f11f776e01a37dabc98b1ff79 /llvm/test/CodeGen/ARM/thumb-alignment.ll | |
parent | 4d3b087c9376e77f43c4a45579417ea1498ee3d4 (diff) | |
download | bcm5719-llvm-61d15ae4f56474164dff42708d9f7a19bb12ba1c.tar.gz bcm5719-llvm-61d15ae4f56474164dff42708d9f7a19bb12ba1c.zip |
[MC] Use .p2align instead of .align
For historic reasons, the behavior of .align differs between targets.
Fortunately, there are alternatives, .p2align and .balign, which make the
interpretation of the parameter explicit, and which behave consistently across
targets.
This patch teaches MC to use .p2align instead of .align, so that people reading
code for multiple architectures don't have to remember which way each platform
does its .align directive.
Differential Revision: http://reviews.llvm.org/D16549
llvm-svn: 258750
Diffstat (limited to 'llvm/test/CodeGen/ARM/thumb-alignment.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/thumb-alignment.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/ARM/thumb-alignment.ll b/llvm/test/CodeGen/ARM/thumb-alignment.ll index b9ddfbb714d..8e894d28b6c 100644 --- a/llvm/test/CodeGen/ARM/thumb-alignment.ll +++ b/llvm/test/CodeGen/ARM/thumb-alignment.ll @@ -3,13 +3,13 @@ @x = external global i32 ; CHECK: .globl foo -; CHECK-NEXT: .align 2 +; CHECK-NEXT: .p2align 2 define i32* @foo() { ret i32* @x } ; CHECK: .globl bar -; CHECK-NEXT: .align 1 +; CHECK-NEXT: .p2align 1 define i32* @bar() { ret i32* zeroinitializer } @@ -22,7 +22,7 @@ define i32* @bar() { ; Create a Thumb-2 jump table, which should force alignment to 4 bytes. ; CHECK: .globl baz -; CHECK-NEXT: .align 2 +; CHECK-NEXT: .p2align 2 ; CHECK: tbb define i32 @baz() { %1 = load i32, i32* @c, align 4 |