RISC-V: re-arrange opcode table for consistent alias handling
authorJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2022 08:19:00 +0000 (10:19 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2022 08:19:00 +0000 (10:19 +0200)
commit839189bc932ea02c9647a3ad829dda72f8a9562c
treeaf1a523bf81dedf1f65d3b5aa531b6252ecd6ffd
parent79d635fc64ba9ca97c24c0c52c9924dba77e9527
RISC-V: re-arrange opcode table for consistent alias handling

For disassembly to pick up aliases in favor of underlying insns (helping
readability in the common case), the aliases need to come ahead of the
"base" insns. Slightly more code movement is needed because of insns
with the same name needing to stay next to each other.

Note that the "rorw" alias entry also has the missing INSN_ALIAS added
here.

Clone a few testcases to exercise -Mno-aliases some more, better
covering the differences between the default and that disassembly mode.
28 files changed:
gas/testsuite/gas/riscv/b-ext-64-na.d [new file with mode: 0644]
gas/testsuite/gas/riscv/b-ext-64.d
gas/testsuite/gas/riscv/b-ext-na.d [new file with mode: 0644]
gas/testsuite/gas/riscv/b-ext.d
gas/testsuite/gas/riscv/c-zero-imm-na.d [new file with mode: 0644]
gas/testsuite/gas/riscv/c-zero-imm.d
gas/testsuite/gas/riscv/c-zero-reg.d
gas/testsuite/gas/riscv/csr-insns-pseudo-zfinx.d
gas/testsuite/gas/riscv/csr-insns-pseudo.d
gas/testsuite/gas/riscv/ext-32.d
gas/testsuite/gas/riscv/ext-64.d
gas/testsuite/gas/riscv/insn-na.d [new file with mode: 0644]
gas/testsuite/gas/riscv/insn.d
gas/testsuite/gas/riscv/k-ext-64.d
gas/testsuite/gas/riscv/k-ext.d
gas/testsuite/gas/riscv/li32.d
gas/testsuite/gas/riscv/li64.d
gas/testsuite/gas/riscv/lla32.d
gas/testsuite/gas/riscv/lla64.d
gas/testsuite/gas/riscv/zbkb-32.d
gas/testsuite/gas/riscv/zbkb-64.d
ld/testsuite/ld-riscv-elf/ifunc-plt-01.d
ld/testsuite/ld-riscv-elf/ifunc-plt-02.d
ld/testsuite/ld-riscv-elf/ifunc-reloc-pcrel.d
ld/testsuite/ld-riscv-elf/pcgp-relax-02.d
ld/testsuite/ld-riscv-elf/weakref32.d
ld/testsuite/ld-riscv-elf/weakref64.d
opcodes/riscv-opc.c