RISC-V: Add .insn CA support.
authorJim Wilson <jimw@sifive.com>
Tue, 27 Nov 2018 19:29:23 +0000 (11:29 -0800)
committerJim Wilson <jimw@sifive.com>
Tue, 27 Nov 2018 19:29:23 +0000 (11:29 -0800)
commit4765cd611992862c844e8f152c5dbaadaecc25ce
tree00f42b17c85c6b2636ed964786b48db31a3d295a
parentb5ab31636d36e1252791cec179aa11ab9d9b87e9
RISC-V: Add .insn CA support.

gas/
* config/tc-riscv.c (validate_riscv_insn) <'F'>: Add support for CF6
and CF2 operands.
(riscv_ip) <'F'>: Likewise.
* doc/c-riscv.texi (RISC-V-Formats): Add func6 abbreviation.  Use rs2
instead of rs1 in CR description.  Add CA docs.
* gas/testsuite/riscv/insn.s: Add use of .insn ca.
* gas/testsuite/riscv/insn.d: Update to match.
include/
* opcode/riscv.h (OP_MASK_CFUNCT6, OP_SH_CFUNCT6): New.
(OP_MASK_CFUNCT2, OP_SH_CFUNCT2): New.
opcodes/
* riscv-opc.c (ciw): Fix whitespace to align columns.
(ca): New.
gas/ChangeLog
gas/config/tc-riscv.c
gas/doc/c-riscv.texi
gas/testsuite/gas/riscv/insn.d
gas/testsuite/gas/riscv/insn.s
include/ChangeLog
include/opcode/riscv.h
opcodes/ChangeLog
opcodes/riscv-opc.c