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/Thumb2 | |
| 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/Thumb2')
| -rw-r--r-- | llvm/test/CodeGen/Thumb2/aligned-constants.ll | 4 | ||||
| -rw-r--r-- | llvm/test/CodeGen/Thumb2/thumb2-tbb.ll | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/Thumb2/aligned-constants.ll b/llvm/test/CodeGen/Thumb2/aligned-constants.ll index 13cca113452..df3b19dbb5c 100644 --- a/llvm/test/CodeGen/Thumb2/aligned-constants.ll +++ b/llvm/test/CodeGen/Thumb2/aligned-constants.ll @@ -4,11 +4,11 @@ target triple = "thumbv7-apple-ios" ; The double in the constant pool is 8-byte aligned, forcing the function ; alignment. -; CHECK: .align 3 +; CHECK: .p2align 3 ; CHECK: func ; ; Constant pool with 8-byte entry before 4-byte entry: -; CHECK: .align 3 +; CHECK: .p2align 3 ; CHECK: LCPI ; CHECK: .long 2370821947 ; CHECK: .long 1080815255 diff --git a/llvm/test/CodeGen/Thumb2/thumb2-tbb.ll b/llvm/test/CodeGen/Thumb2/thumb2-tbb.ll index 758f792695f..9e628519913 100644 --- a/llvm/test/CodeGen/Thumb2/thumb2-tbb.ll +++ b/llvm/test/CodeGen/Thumb2/thumb2-tbb.ll @@ -7,7 +7,7 @@ entry: ; CHECK: tbb ; CHECK: .data_region jt8 ; CHECK: .end_data_region -; CHECK-NEXT: .align 1 +; CHECK-NEXT: .p2align 1 switch i32 %n.u, label %bb12 [i32 1, label %bb i32 2, label %bb6 i32 4, label %bb7 i32 5, label %bb8 i32 6, label %bb10 i32 7, label %bb1 i32 8, label %bb3 i32 9, label %bb4 i32 10, label %bb9 i32 11, label %bb2 i32 12, label %bb5 i32 13, label %bb11 ] bb: |

