[AArch64][SVE] Asm: More concise test format
authorFlorian Hahn <florian.hahn@arm.com>
Fri, 10 Nov 2017 16:25:16 +0000 (16:25 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Fri, 10 Nov 2017 16:25:16 +0000 (16:25 +0000)
commit0f4075e0b12adc8e2bef4c389d1d44861ae4ff05
treee2569bf5f7863006570bfd6270aaca425970c567
parent3808ff743ee514eb15de5c3952092a2c799a9cff
[AArch64][SVE] Asm: More concise test format

Change the test format for SVE assembler/disassembler tests to be less verbose and have both tests in the same file.

The tests check the following:

 * All instructions are assembled correctly into the right encoding.
 * All instructions are disassembled correctly (into the preferred assembly format)
 * Without -mattr=+sve the instructions are not assembled.
 * Without -mattr=+sve the instructions are not disassembled.

This patch also adds several negative tests for SVE add/sub.

Patch by Sander De Smalen.

Reviewed by: rengolin, fhahn

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

llvm-svn: 317894
llvm/test/MC/AArch64/SVE/add-diagnostics.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE/add.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE/assembler_tests/add.s [deleted file]
llvm/test/MC/AArch64/SVE/assembler_tests/sub.s [deleted file]
llvm/test/MC/AArch64/SVE/disassembler_tests/add.s [deleted file]
llvm/test/MC/AArch64/SVE/disassembler_tests/sub.s [deleted file]
llvm/test/MC/AArch64/SVE/sub-diagnostics.s [new file with mode: 0644]
llvm/test/MC/AArch64/SVE/sub.s [new file with mode: 0644]