Skip to content

Commit 2ff5f5d

Browse files
committed
[AArch64, COFF] Interpret .align as power of two for COFF as well
Differential Revision: https://reviews.llvm.org/D35545 llvm-svn: 308517
1 parent e018bbd commit 2ff5f5d

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

llvm/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,5 @@ AArch64MCAsmInfoCOFF::AArch64MCAsmInfoCOFF() {
105105
CommentString = ";";
106106
PrivateGlobalPrefix = ".L";
107107
PrivateLabelPrefix = ".L";
108+
AlignmentIsInBytes = false;
108109
}

llvm/test/MC/AArch64/coff-align.s

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// RUN: llvm-mc -filetype=obj -triple aarch64-windows-gnu %s | llvm-readobj -s -sd | FileCheck %s
2+
.text
3+
.align 5
4+
f0:
5+
ret
6+
7+
// CHECK: IMAGE_SCN_ALIGN_32BYTES

0 commit comments

Comments
 (0)