Testsuite: Allow multiple lines of "as" in testsuite.
authorMatthew Malcomson <matthew.malcomson@arm.com>
Wed, 27 Feb 2019 13:15:10 +0000 (13:15 +0000)
committerTamar Christina <tamar.christina@arm.com>
Wed, 27 Feb 2019 13:16:14 +0000 (13:16 +0000)
commit52d6f3ee9439bb20c45421ecfeef2a69fd0b5511
tree0a3e567e7a34a95bc9549150797abbe527b4485a
parentbf9a735e239cb7a27c81aa7c98679f7f83fa8314
Testsuite: Allow multiple lines of "as" in testsuite.

Committed on behalf of Matthew Malcomson.

This allows checking the command line parsing more easily than before by
allowing many command line invokations from the same .d file.

Each line is used as a set of flags, and the tests are ran against the output
of the assembler with each set.
Each line of assembler is treated as another set of tests (as if the test file
were copied to another with a different #as: line).

This patch includes some example uses where multiple testcases can be merged
into one file using this new functionality.

binutils/ChangeLog:

* testsuite/lib/binutils-common.exp: Allow multiple "as" lines.

gas/ChangeLog:

* testsuite/gas/aarch64/dotproduct.d: Use multiple "as" lines.
* testsuite/gas/aarch64/dotproduct_armv8_4.d: Remove.
* testsuite/gas/aarch64/dotproduct_armv8_4.s: Remove.
* testsuite/gas/aarch64/illegal-dotproduct.d: Use multiple "as"
lines.
* testsuite/gas/aarch64/ldst-rcpc-armv8_2.d: Remove.
* testsuite/gas/aarch64/ldst-rcpc.d: Use multiple "as" lines.
binutils/ChangeLog
binutils/testsuite/lib/binutils-common.exp
gas/ChangeLog
gas/testsuite/gas/aarch64/dotproduct.d
gas/testsuite/gas/aarch64/dotproduct_armv8_4.d [deleted file]
gas/testsuite/gas/aarch64/dotproduct_armv8_4.s [deleted file]
gas/testsuite/gas/aarch64/illegal-dotproduct.d
gas/testsuite/gas/aarch64/ldst-rcpc-armv8_2.d [deleted file]
gas/testsuite/gas/aarch64/ldst-rcpc.d