AArch64: Constraint disassembler and assembler changes.
authorTamar Christina <tamar.christina@arm.com>
Wed, 3 Oct 2018 17:51:11 +0000 (18:51 +0100)
committerTamar Christina <tamar.christina@arm.com>
Wed, 3 Oct 2018 17:51:58 +0000 (18:51 +0100)
commitbde90be2cddc06371ee80a258bf6855d0f346324
tree21c071ccc885044550b711ab68eec36041193365
parent4f5d2536289c0aedc3234f1bff6e9f4284f267c5
AArch64: Constraint disassembler and assembler changes.

This patch wires in the new constraint verifiers into the assembler and
disassembler.  Because of this the MOVPRFX tests have to be split out from the
generic SVE tests into their own tests so warnings can be ignored.

These tests are only intended to test the encoding correctness and not the
constraints.

gas/

* testsuite/gas/aarch64/sve-movprfx.d: New test.
* testsuite/gas/aarch64/sve-movprfx.s: New test.
* testsuite/gas/aarch64/sve.d: Refactor.
* testsuite/gas/aarch64/sve.s: Refactor.
        * testsuite/gas/aarch64/sysreg-diagnostic.d: Update.

opcodes/

* aarch64-asm.c (aarch64_opcode_encode): Apply constraint verifier.
* aarch64-dis.c (print_operands): Refactor to take notes.
(print_verifier_notes): New.
(print_aarch64_insn): Apply constraint verifier.
(print_insn_aarch64_word): Update call to print_aarch64_insn.
* aarch64-opc.c (aarch64_print_operand): Remove attribute, update notes format.
gas/ChangeLog
gas/testsuite/gas/aarch64/sve-movprfx.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/sve-movprfx.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/sve.d
gas/testsuite/gas/aarch64/sve.s
gas/testsuite/gas/aarch64/sysreg-diagnostic.d
opcodes/ChangeLog
opcodes/aarch64-asm.c
opcodes/aarch64-dis.c
opcodes/aarch64-opc.c