[PATCH] D27417: [X86][inline-asm] Add support for MS 'EVEN' directive
coby via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 5 09:41:18 PST 2016
coby created this revision.
coby added reviewers: myatsina, m_zuckerman.
coby added a subscriber: llvm-commits.
coby set the repository for this revision to rL LLVM.
MS assembly syntax provide us with the 'EVEN' directive as a synonymous to at&t '.even'.
This patch include the (small, simple) changes need to allow it.
Test is provided at the following (clang-side) review:
Differential Revision:
Repository:
rL LLVM
https://reviews.llvm.org/D27417
Files:
lib/MC/MCParser/AsmParser.cpp
Index: lib/MC/MCParser/AsmParser.cpp
===================================================================
--- lib/MC/MCParser/AsmParser.cpp
+++ lib/MC/MCParser/AsmParser.cpp
@@ -1979,7 +1979,7 @@
if (ParsingInlineAsm && (IDVal == "align" || IDVal == "ALIGN"))
return parseDirectiveMSAlign(IDLoc, Info);
- if (ParsingInlineAsm && (IDVal == "even"))
+ if (ParsingInlineAsm && (IDVal == "even" || IDVal == "EVEN"))
Info.AsmRewrites->emplace_back(AOK_EVEN, IDLoc, 4);
if (checkForValidSection())
return true;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27417.80279.patch
Type: text/x-patch
Size: 537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161205/2b89f60e/attachment.bin>
More information about the llvm-commits
mailing list