[PATCH] D73227: [ms] [llvm-ml] Use default RIP-relative addressing for x64 MASM.
Eric Astor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 14:06:49 PST 2020
epastor created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
epastor added a parent revision: D73226: [ms] [llvm-ml] Improve data support, adding names and complex initializers..
When parsing 64-bit MASM, treat memory operands with unspecified base register as RIP-based.
Documented in several places, including https://software.intel.com/en-us/articles/introduction-to-x64-assembly: "Unfortunately, MASM does not allow this form of opcode, but other assemblers like FASM and YASM do. Instead, MASM embeds RIP-relative addressing implicitly."
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73227
Files:
llvm/include/llvm/MC/MCParser/MCAsmParser.h
llvm/lib/MC/MCParser/MasmParser.cpp
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/lib/Target/X86/AsmParser/X86Operand.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73227.239694.patch
Type: text/x-patch
Size: 5271 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200122/c3805afb/attachment.bin>
More information about the llvm-commits
mailing list