[PATCH] D108597: [M68k][AsmParser] Support parsing register masks & fix printing them

Ricky Taylor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 23 16:14:14 PDT 2021


ricky26 created this revision.
ricky26 added a reviewer: myhsu.
Herald added a subscriber: hiraditya.
ricky26 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Fixes PR51580.

Register masks will now be printed as 'movem.l (%sp), %a0-%a5/%d5'
for example and can now be parsed in the same format.

Previously the printed syntax was 'movem.l (%sp), %a0-%a5,%d', which
didn't match prior art and was too ambiguous to easily parse.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108597

Files:
  llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
  llvm/lib/Target/M68k/M68kInstrInfo.td
  llvm/lib/Target/M68k/MCTargetDesc/M68kInstPrinter.cpp
  llvm/test/CodeGen/M68k/CollapseMOVEM.mir
  llvm/test/MC/M68k/instructions.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108597.368233.patch
Type: text/x-patch
Size: 11216 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210823/63b13ad1/attachment.bin>


More information about the llvm-commits mailing list