]> granicus.if.org Git - llvm/commitdiff
[AArch64, COFF] Interpret .align as power of two for COFF as well
authorMartin Storsjo <martin@martin.st>
Wed, 19 Jul 2017 20:14:24 +0000 (20:14 +0000)
committerMartin Storsjo <martin@martin.st>
Wed, 19 Jul 2017 20:14:24 +0000 (20:14 +0000)
Differential Revision: https://reviews.llvm.org/D35545

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308517 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
test/MC/AArch64/coff-align.s [new file with mode: 0644]

index c25bd8c8f6cc98f1e28858fcb53e79c12872f914..1ab8f836b5843d65b6174d1f4f80cebb0b62e7b5 100644 (file)
@@ -105,4 +105,5 @@ AArch64MCAsmInfoCOFF::AArch64MCAsmInfoCOFF() {
   CommentString = ";";
   PrivateGlobalPrefix = ".L";
   PrivateLabelPrefix = ".L";
+  AlignmentIsInBytes = false;
 }
diff --git a/test/MC/AArch64/coff-align.s b/test/MC/AArch64/coff-align.s
new file mode 100644 (file)
index 0000000..b649804
--- /dev/null
@@ -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