RISC-V: Reorder the prefixed extensions which are out of order.
authorNelson Chu <nelson.chu@sifive.com>
Wed, 22 Jun 2022 09:57:12 +0000 (17:57 +0800)
committerNelson Chu <nelson.chu@sifive.com>
Wed, 22 Jun 2022 10:13:50 +0000 (18:13 +0800)
commitafc41ffb993a275d7f5460e8f5a4341729caab4f
tree2b9f1541fc5ed4544d33ace8a1027efa7ae5f481
parentc625f4ed05eb234d6a182201d14b3b1c64232afd
RISC-V: Reorder the prefixed extensions which are out of order.

This patch has been pending for almost a year...  However, I noticed that
llvm can already re-order the extensions, even if they are out of orders.
Not really sure if they can also re-order the single letter extensions,
but at least we can do this for the multi-letter extensions in binutils.

bfd/
    * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed the code which are
    used to check the prefixed extension orders.
gas/
    * testsuite/gas/riscv/march-fail-order-x-z.d: Removed since we will help
    tp reorder the prefixed extensions for now.
    * testsuite/gas/riscv/march-fail-order-x-z.l: Likewise.
    * testsuite/gas/riscv/march-fail-order-x.d: Likewise.
    * testsuite/gas/riscv/march-fail-order-x.l: Likewise.
    * testsuite/gas/riscv/march-fail-order-z.d: Likewise.
    * testsuite/gas/riscv/march-fail-order-z.l: Likewise.
bfd/elfxx-riscv.c
gas/testsuite/gas/riscv/march-fail-order-x-z.d [deleted file]
gas/testsuite/gas/riscv/march-fail-order-x-z.l [deleted file]
gas/testsuite/gas/riscv/march-fail-order-x.d [deleted file]
gas/testsuite/gas/riscv/march-fail-order-x.l [deleted file]
gas/testsuite/gas/riscv/march-fail-order-z.d [deleted file]
gas/testsuite/gas/riscv/march-fail-order-z.l [deleted file]