RISC-V: make C-extension JAL available again for (32-bit) assembly
authorJan Beulich <jbeulich@suse.com>
Tue, 31 Jan 2023 08:47:22 +0000 (09:47 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 31 Jan 2023 08:47:22 +0000 (09:47 +0100)
commita3c2d248683e13aafa7362e3da278080a5bb5954
tree1fa567e7ea7f7fbabb9d58d224edc05a86f607a8
parentb3a3d7d90800b7c21ce8d82dbdbf17eeab163c7b
RISC-V: make C-extension JAL available again for (32-bit) assembly

Along with the normal JAL alias, the C-extension one should have been
moved as well by 839189bc932e ("RISC-V: re-arrange opcode table for
consistent alias handling"), for the assembler to actually be able to
use it where/when possible.

Since neither this nor any other compressed branch insn was being tested
so far, take the opportunity and introduce a new testcase covering those.
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/c-branch-na.d [new file with mode: 0644]
gas/testsuite/gas/riscv/c-branch.d [new file with mode: 0644]
gas/testsuite/gas/riscv/c-branch.s [new file with mode: 0644]
opcodes/riscv-opc.c