[MC] Reorganize and improve macro tests
authorFangrui Song <maskray@google.com>
Mon, 13 Apr 2020 05:02:55 +0000 (22:02 -0700)
committerFangrui Song <maskray@google.com>
Mon, 13 Apr 2020 05:54:01 +0000 (22:54 -0700)
commit835c2aa7a68bb1fc559233e007f8e57b263eac99
tree81508e59354073454532da3310090bea6ead56c0
parent8dda0f91995955bb8f484f8d41374aff59118355
[MC] Reorganize and improve macro tests

* Reorganize tests and add coverage
* Improve diagnostic testing
* Make assert() tests more relevant
* Rename tests to macro-* or altmacro-*

This is not NFC because a (previously untested) diagnostic message is changed.
14 files changed:
llvm/lib/MC/MCParser/AsmParser.cpp
llvm/test/MC/AsmParser/altmacro-err.s [moved from llvm/test/MC/AsmParser/negative_altmacro_string.s with 100% similarity]
llvm/test/MC/AsmParser/altmacro-expr-err.s [moved from llvm/test/MC/AsmParser/negativ_altmacro_expression.s with 100% similarity]
llvm/test/MC/AsmParser/bad-macro.s [deleted file]
llvm/test/MC/AsmParser/invalid-input-assertion.s [deleted file]
llvm/test/MC/AsmParser/macro-arg-err.s
llvm/test/MC/AsmParser/macro-at-pseudo-variable-err.s [moved from llvm/test/MC/AsmParser/at-pseudo-variable-bad.s with 100% similarity]
llvm/test/MC/AsmParser/macro-at-pseudo-variable.s [moved from llvm/test/MC/AsmParser/at-pseudo-variable.s with 100% similarity]
llvm/test/MC/AsmParser/macro-same-context.ll [moved from llvm/test/MC/AsmParser/inline_macro_duplication.ll with 70% similarity]
llvm/test/MC/AsmParser/macro-vararg-err.s [new file with mode: 0644]
llvm/test/MC/AsmParser/macro-vararg.s [new file with mode: 0644]
llvm/test/MC/AsmParser/unmatched-if-macro.s [new file with mode: 0644]
llvm/test/MC/AsmParser/unmatched-if.s [new file with mode: 0644]
llvm/test/MC/AsmParser/vararg.s [deleted file]