From 61d15ae4f56474164dff42708d9f7a19bb12ba1c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 26 Jan 2016 00:03:25 +0000 Subject: [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 --- llvm/test/CodeGen/AArch64/stackmap-liveness.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/test/CodeGen/AArch64/stackmap-liveness.ll') diff --git a/llvm/test/CodeGen/AArch64/stackmap-liveness.ll b/llvm/test/CodeGen/AArch64/stackmap-liveness.ll index 6b37aac16f9..224a9c41852 100644 --- a/llvm/test/CodeGen/AArch64/stackmap-liveness.ll +++ b/llvm/test/CodeGen/AArch64/stackmap-liveness.ll @@ -37,7 +37,7 @@ define i64 @stackmap_liveness(i1 %c) { ; CHECK-NEXT: .byte 0 ; CHECK-NEXT: .byte 8 ; Align -; CHECK-NEXT: .align 3 +; CHECK-NEXT: .p2align 3 %1 = select i1 %c, i64 1, i64 2 call anyregcc void (i64, i32, i8*, i32, ...) @llvm.experimental.patchpoint.void(i64 1, i32 32, i8* null, i32 0) ret i64 %1 -- cgit v1.2.3