[all-commits] [llvm/llvm-project] 5dd1b6: [ms] [llvm-ml] Add support for .radix directive, a...

Eric Astor via All-commits all-commits at lists.llvm.org
Wed Sep 23 10:46:52 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5dd1b6d612655c9006ba97a8b6487ded80719b48
      https://github.com/llvm/llvm-project/commit/5dd1b6d612655c9006ba97a8b6487ded80719b48
  Author: Eric Astor <epastor at google.com>
  Date:   2020-09-23 (Wed, 23 Sep 2020)

  Changed paths:
    M llvm/include/llvm/MC/MCParser/MCAsmLexer.h
    M llvm/lib/MC/MCParser/AsmLexer.cpp
    M llvm/lib/MC/MCParser/COFFMasmParser.cpp
    M llvm/lib/MC/MCParser/MasmParser.cpp
    M llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
    A llvm/test/tools/llvm-ml/radix.test
    A llvm/test/tools/llvm-ml/radix_errors.test

  Log Message:
  -----------
  [ms] [llvm-ml] Add support for .radix directive, and accept all radix specifiers

Add support for .radix directive, and radix specifiers [yY] (binary), [oOqQ] (octal), and [tT] (decimal).

Also, when lexing MASM integers, require radix specifier; MASM requires that all literals without a radix specifier be treated as in the default radix. (e.g., 0100 = 100)

Reviewed By: thakis

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




More information about the All-commits mailing list