[AArch64, COFF] Interpret .align as power of two for COFF as well

Differential Revision: https://reviews.llvm.org/D35545

llvm-svn: 308517
This commit is contained in:
Martin Storsjo 2017-07-19 20:14:24 +00:00
parent e018bbd835
commit 2ff5f5d681
2 changed files with 8 additions and 0 deletions

View File

@ -105,4 +105,5 @@ AArch64MCAsmInfoCOFF::AArch64MCAsmInfoCOFF() {
CommentString = ";";
PrivateGlobalPrefix = ".L";
PrivateLabelPrefix = ".L";
AlignmentIsInBytes = false;
}

View File

@ -0,0 +1,7 @@
// RUN: llvm-mc -filetype=obj -triple aarch64-windows-gnu %s | llvm-readobj -s -sd | FileCheck %s
.text
.align 5
f0:
ret
// CHECK: IMAGE_SCN_ALIGN_32BYTES