[all-commits] [llvm/llvm-project] 353a16: [ms] [llvm-ml] Use default RIP-relative addressing...

Eric Astor via All-commits all-commits at lists.llvm.org
Wed Jul 1 09:41:52 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 353a169cb814334e47bc2e98f03931e62023665a
      https://github.com/llvm/llvm-project/commit/353a169cb814334e47bc2e98f03931e62023665a
  Author: Eric Astor <epastor at google.com>
  Date:   2020-07-01 (Wed, 01 Jul 2020)

  Changed paths:
    M llvm/include/llvm/MC/MCParser/MCAsmParser.h
    M llvm/lib/MC/MCParser/MasmParser.cpp
    M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
    M llvm/lib/Target/X86/AsmParser/X86Operand.h
    A llvm/test/tools/llvm-ml/rip-relative-addressing.test

  Log Message:
  -----------
  [ms] [llvm-ml] Use default RIP-relative addressing for x64 MASM.

Summary:
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."

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D73227




More information about the All-commits mailing list