[PATCH] D120477: [LoongArch] Add basic support to Disassembler

Lu Weining via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 24 05:36:09 PST 2022


SixWeining created this revision.
SixWeining added reviewers: rengolin, xen0n, MaskRay, myhsu.
Herald added subscribers: hiraditya, mgorny.
SixWeining requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

With the addition of disassembler now we can do instructions 'round-trip' test
that assembles `.s` to obj with `llvm-mc` and disassembles it with `llvm-objdump`
to check instruction mnemonics.

Depends on D120476 <https://reviews.llvm.org/D120476>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120477

Files:
  llvm/lib/Target/LoongArch/CMakeLists.txt
  llvm/lib/Target/LoongArch/Disassembler/CMakeLists.txt
  llvm/lib/Target/LoongArch/Disassembler/LoongArchDisassembler.cpp
  llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
  llvm/test/MC/LoongArch/Directives/data-valid.s
  llvm/test/MC/LoongArch/ISA/Basic/Integer/arith.s
  llvm/test/MC/LoongArch/ISA/Basic/Integer/atomic.s
  llvm/test/MC/LoongArch/ISA/Basic/Integer/barrier.s
  llvm/test/MC/LoongArch/ISA/Basic/Integer/bit-manipu.s
  llvm/test/MC/LoongArch/ISA/Basic/Integer/bit-shift.s
  llvm/test/MC/LoongArch/ISA/Basic/Integer/bound-check.s
  llvm/test/MC/LoongArch/ISA/Basic/Integer/branch.s
  llvm/test/MC/LoongArch/ISA/Basic/Integer/crc.s
  llvm/test/MC/LoongArch/ISA/Basic/Integer/invalid-dis.s
  llvm/test/MC/LoongArch/ISA/Basic/Integer/memory.s
  llvm/test/MC/LoongArch/ISA/Basic/Integer/misc.s
  llvm/test/MC/LoongArch/ISA/Basic/Integer/pseudos.s
  llvm/test/MC/LoongArch/Misc/aligned-nops.s
  llvm/test/MC/LoongArch/Misc/unaligned-nops.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120477.411097.patch
Type: text/x-patch
Size: 52857 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220224/62468b4d/attachment-0001.bin>


More information about the llvm-commits mailing list