[PATCH] D101410: [M68k][test] Initial migration of MC tests

Min-Yih Hsu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 27 16:25:01 PDT 2021


myhsu created this revision.
myhsu added reviewers: RKSimon, jrtc27, rengolin.
myhsu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

As the context depicted by bug 49865[1], we are migrating tests under
 `test/CodeGen/M68k/Encoding`, which was originally used to test
 instruction encoding using MIR file as input, into `test/MC/M68k`. We
 are also adding test directives for AsmParser using the same set of
 inputs.

Currently we are converting the original MIR test files into assembly
 code as well as translating the original LIT "RUN" statement into one
 that only uses built-in LLVM tools (i.e. Get rid of `extract-section`).

However, since AsmParser has not completely finished, many of these
 original test cases fail. Thus, this patch only migrate test files
 that are passed by the current implementation of AsmParser (and
 MCCodeEmitter). The remaining tests (under test/CodeGen/M68k/Encoding)
 will be ported alone with the patch that fixes the related issues.

[1]: https://bugs.llvm.org/show_bug.cgi?id=49865


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101410

Files:
  llvm/test/CodeGen/M68k/Encoding/Arith/Classes/MxBiArOp_RFRI.mir
  llvm/test/CodeGen/M68k/Encoding/Arith/Classes/MxBiArOp_RFRRF.mir
  llvm/test/CodeGen/M68k/Encoding/Arith/Classes/MxBiArOp_RFRR_EAd.mir
  llvm/test/CodeGen/M68k/Encoding/Arith/Classes/MxCMP_RI.mir
  llvm/test/CodeGen/M68k/Encoding/Arith/Classes/MxCMP_RR.mir
  llvm/test/CodeGen/M68k/Encoding/Arith/Classes/MxDiMu.mir
  llvm/test/CodeGen/M68k/Encoding/Arith/Classes/MxExt.mir
  llvm/test/CodeGen/M68k/Encoding/Arith/Classes/MxNEG.mir
  llvm/test/CodeGen/M68k/Encoding/Bits/Classes/MxBTST_RI.mir
  llvm/test/CodeGen/M68k/Encoding/Bits/Classes/MxBTST_RR.mir
  llvm/test/CodeGen/M68k/Encoding/Control/Classes/MxJMP.mir
  llvm/test/CodeGen/M68k/Encoding/Control/Classes/MxNOP.mir
  llvm/test/CodeGen/M68k/Encoding/Control/Classes/MxRTS.mir
  llvm/test/CodeGen/M68k/Encoding/Data/Classes/MxMove_RI.mir
  llvm/test/CodeGen/M68k/Encoding/Relocations/data-abs.mir
  llvm/test/CodeGen/M68k/Encoding/Relocations/data-gotoff.mir
  llvm/test/CodeGen/M68k/Encoding/Relocations/data-gotpcrel.mir
  llvm/test/CodeGen/M68k/Encoding/Relocations/data-pc-rel.mir
  llvm/test/CodeGen/M68k/Encoding/Relocations/text-plt.mir
  llvm/test/CodeGen/M68k/Encoding/ShiftRotate/Classes/MxSR_DD.mir
  llvm/test/CodeGen/M68k/Encoding/ShiftRotate/Classes/MxSR_DI.mir
  llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRI.s
  llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRRF.s
  llvm/test/MC/M68k/Arith/Classes/MxBiArOp_RFRR_EAd.s
  llvm/test/MC/M68k/Arith/Classes/MxCMP_RI.s
  llvm/test/MC/M68k/Arith/Classes/MxCMP_RR.s
  llvm/test/MC/M68k/Arith/Classes/MxDiMu.s
  llvm/test/MC/M68k/Arith/Classes/MxExt.s
  llvm/test/MC/M68k/Arith/Classes/MxNEG.s
  llvm/test/MC/M68k/Bits/Classes/MxBTST_RI.s
  llvm/test/MC/M68k/Bits/Classes/MxBTST_RR.s
  llvm/test/MC/M68k/Control/Classes/MxJMP.s
  llvm/test/MC/M68k/Control/Classes/MxNOP.s
  llvm/test/MC/M68k/Control/Classes/MxRTS.s
  llvm/test/MC/M68k/Data/Classes/MxMove_RI.s
  llvm/test/MC/M68k/Relocations/data-abs.s
  llvm/test/MC/M68k/Relocations/data-gotoff.s
  llvm/test/MC/M68k/Relocations/data-gotpcrel.s
  llvm/test/MC/M68k/Relocations/data-pc-rel.s
  llvm/test/MC/M68k/Relocations/text-plt.s
  llvm/test/MC/M68k/ShiftRotate/Classes/MxSR_DD.s
  llvm/test/MC/M68k/ShiftRotate/Classes/MxSR_DI.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101410.341019.patch
Type: text/x-patch
Size: 54513 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210427/6ad6f7ce/attachment.bin>


More information about the llvm-commits mailing list