[PATCH] D107088: [ARC] Add additional mov immediate instruction formats with a fix for u6 decoding

Thomas Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 29 10:32:29 PDT 2021


thomasjohns created this revision.
thomasjohns added a reviewer: marksl.
Herald added a subscriber: hiraditya.
thomasjohns requested review of this revision.
Herald added a project: LLVM.

This adds the `mov_f_ru6` and `mov_cc_f_ru6` instruction formats. Adding the `f` flag to these instructions revealed a bug in the u6 decoding (details to be explained in context below). This u6 decoding bug is fixed here.

Many new decoder test cases have also been added, exercising the changes mentioned above in addition to further exercising predicated binary instructions (the support for these was added here https://reviews.llvm.org/rG1cda1e618648d463f89eb5cea8c9849bc0074b24, but that patch only tested predicated rsub).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107088

Files:
  llvm/lib/Target/ARC/ARCInstrFormats.td
  llvm/lib/Target/ARC/ARCInstrInfo.td
  llvm/lib/Target/ARC/Disassembler/ARCDisassembler.cpp
  llvm/test/MC/Disassembler/ARC/alu.txt
  llvm/test/MC/Disassembler/ARC/misc.txt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107088.362817.patch
Type: text/x-patch
Size: 9033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210729/d6373680/attachment.bin>


More information about the llvm-commits mailing list