[all-commits] [llvm/llvm-project] 34da08: [M68k][test] Initial migration of MC tests

Min-Yih Hsu via All-commits all-commits at lists.llvm.org
Wed May 5 17:15:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 34da083a8c6bb42def881c8959e04c1de1366d70
      https://github.com/llvm/llvm-project/commit/34da083a8c6bb42def881c8959e04c1de1366d70
  Author: Min-Yih Hsu <minyihh at uci.edu>
  Date:   2021-05-05 (Wed, 05 May 2021)

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

  Log Message:
  -----------
  [M68k][test] Initial migration of MC tests

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

Differential Revision: https://reviews.llvm.org/D101410


  Commit: abac6023bba555ee930762f08a01f33370308c68
      https://github.com/llvm/llvm-project/commit/abac6023bba555ee930762f08a01f33370308c68
  Author: Min-Yih Hsu <minyihh at uci.edu>
  Date:   2021-05-05 (Wed, 05 May 2021)

  Changed paths:
    M llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
    R llvm/test/CodeGen/M68k/Encoding/Arith/Classes/MxBiArOp_FMI.mir
    R llvm/test/CodeGen/M68k/Encoding/Arith/Classes/MxBiArOp_FMR.mir
    R llvm/test/CodeGen/M68k/Encoding/Bits/Classes/MxBTST_MI.mir
    R llvm/test/CodeGen/M68k/Encoding/Bits/Classes/MxBTST_MR.mir
    R llvm/test/CodeGen/M68k/Encoding/Control/Classes/MxScc.mir
    R llvm/test/CodeGen/M68k/Encoding/Data/Classes/MxLEA.mir
    R llvm/test/CodeGen/M68k/Encoding/Data/Classes/MxMove_MI.mir
    A llvm/test/MC/M68k/Arith/Classes/MxBiArOp_FMI.s
    A llvm/test/MC/M68k/Arith/Classes/MxBiArOp_FMR.s
    A llvm/test/MC/M68k/Bits/Classes/MxBTST_MI.s
    A llvm/test/MC/M68k/Bits/Classes/MxBTST_MR.s
    A llvm/test/MC/M68k/Control/Classes/MxScc.s
    A llvm/test/MC/M68k/Data/Classes/MxLEA.s
    A llvm/test/MC/M68k/Data/Classes/MxMove_MI.s

  Log Message:
  -----------
  [M68k][AsmParser] Support negative integer constants

Parsing negative integer constants as expressions.

Differential Revision: https://reviews.llvm.org/D101732


  Commit: 5b3dd2a49035445dcfdb09fb7e890b79adf6ab6f
      https://github.com/llvm/llvm-project/commit/5b3dd2a49035445dcfdb09fb7e890b79adf6ab6f
  Author: Min-Yih Hsu <minyihh at uci.edu>
  Date:   2021-05-05 (Wed, 05 May 2021)

  Changed paths:
    M llvm/lib/Target/M68k/AsmParser/M68kAsmParser.cpp
    R llvm/test/CodeGen/M68k/Encoding/Data/Classes/MxMoveCCR.mir
    A llvm/test/MC/M68k/Data/Classes/MxMoveCCR.s

  Log Message:
  -----------
  [M68k][AsmParser] Fix invalid register name parsing logics

Adjust sanity check in register parsing function to allow register
name with more than 2 characters (e.g. ccr).

Differential Revision: https://reviews.llvm.org/D101733


Compare: https://github.com/llvm/llvm-project/compare/7f06cae1c19d...5b3dd2a49035


More information about the All-commits mailing list