[llvm] r308517 - [AArch64, COFF] Interpret .align as power of two for COFF as well
Martin Storsjo via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 19 13:14:25 PDT 2017
Author: mstorsjo
Date: Wed Jul 19 13:14:24 2017
New Revision: 308517
URL: http://llvm.org/viewvc/llvm-project?rev=308517&view=rev
Log:
[AArch64, COFF] Interpret .align as power of two for COFF as well
Differential Revision: https://reviews.llvm.org/D35545
Added:
llvm/trunk/test/MC/AArch64/coff-align.s
Modified:
llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
Modified: llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp?rev=308517&r1=308516&r2=308517&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/MCTargetDesc/AArch64MCAsmInfo.cpp Wed Jul 19 13:14:24 2017
@@ -105,4 +105,5 @@ AArch64MCAsmInfoCOFF::AArch64MCAsmInfoCO
CommentString = ";";
PrivateGlobalPrefix = ".L";
PrivateLabelPrefix = ".L";
+ AlignmentIsInBytes = false;
}
Added: llvm/trunk/test/MC/AArch64/coff-align.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AArch64/coff-align.s?rev=308517&view=auto
==============================================================================
--- llvm/trunk/test/MC/AArch64/coff-align.s (added)
+++ llvm/trunk/test/MC/AArch64/coff-align.s Wed Jul 19 13:14:24 2017
@@ -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
More information about the llvm-commits
mailing list