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

Eric Astor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 9 11:09:17 PDT 2020


epastor created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
epastor requested review of this revision.

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)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87400

Files:
  llvm/include/llvm/MC/MCParser/MCAsmLexer.h
  llvm/lib/MC/MCParser/AsmLexer.cpp
  llvm/lib/MC/MCParser/COFFMasmParser.cpp
  llvm/lib/MC/MCParser/MasmParser.cpp
  llvm/test/tools/llvm-ml/radix.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87400.290779.patch
Type: text/x-patch
Size: 10703 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200909/6ba08acf/attachment.bin>


More information about the llvm-commits mailing list