summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/code_placement_align_all.ll
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2016-01-26 00:03:25 +0000
committerDan Gohman <dan433584@gmail.com>2016-01-26 00:03:25 +0000
commit61d15ae4f56474164dff42708d9f7a19bb12ba1c (patch)
tree4a63af2529f2012f11f776e01a37dabc98b1ff79 /llvm/test/CodeGen/X86/code_placement_align_all.ll
parent4d3b087c9376e77f43c4a45579417ea1498ee3d4 (diff)
downloadbcm5719-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/X86/code_placement_align_all.ll')
-rw-r--r--llvm/test/CodeGen/X86/code_placement_align_all.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/code_placement_align_all.ll b/llvm/test/CodeGen/X86/code_placement_align_all.ll
index 53df9062020..11dc59a3bab 100644
--- a/llvm/test/CodeGen/X86/code_placement_align_all.ll
+++ b/llvm/test/CodeGen/X86/code_placement_align_all.ll
@@ -1,9 +1,9 @@
; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux -align-all-blocks=16 < %s | FileCheck %s
;CHECK-LABEL: foo:
-;CHECK: .align 65536, 0x90
-;CHECK: .align 65536, 0x90
-;CHECK: .align 65536, 0x90
+;CHECK: .p2align 16, 0x90
+;CHECK: .p2align 16, 0x90
+;CHECK: .p2align 16, 0x90
;CHECK: ret
define i32 @foo(i32 %t, i32 %l) nounwind readnone ssp uwtable {
%1 = icmp eq i32 %t, 0
OpenPOWER on IntegriCloud