[all-commits] [llvm/llvm-project] c8d0d8: [ms] [llvm-ml] Add support for ALIGN, EVEN, and OR...

Eric Astor via All-commits all-commits at lists.llvm.org
Fri Jun 25 14:27:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c8d0d8a8a16e52bc0d6856f36065f46da19b1713
      https://github.com/llvm/llvm-project/commit/c8d0d8a8a16e52bc0d6856f36065f46da19b1713
  Author: Eric Astor <epastor at google.com>
  Date:   2021-06-25 (Fri, 25 Jun 2021)

  Changed paths:
    M llvm/lib/MC/MCParser/MasmParser.cpp
    A llvm/test/tools/llvm-ml/align_directives.asm
    A llvm/test/tools/llvm-ml/align_errors.asm

  Log Message:
  -----------
  [ms] [llvm-ml] Add support for ALIGN, EVEN, and ORG directives

Match ML.EXE's behavior for ALIGN, EVEN, and ORG directives both at file level and in STRUCTs.

We currently reject negative offsets passed to ORG inside STRUCTs (in ML.EXE and ML64.EXE, they wrap around as for an unsigned 32-bit integer).

Also, if a STRUCT is declared using an ORG directive, no value of that type can be defined.

Reviewed By: thakis

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




More information about the All-commits mailing list