RISC-V: Add missing hint instructions from RV128I.
authorJim Wilson <jimw@sifive.com>
Tue, 8 May 2018 22:46:19 +0000 (15:46 -0700)
committerJim Wilson <jimw@sifive.com>
Tue, 8 May 2018 22:46:19 +0000 (15:46 -0700)
commite6f372ba661bb0d8eec1e22a6dc1ad9937336e4d
tree1e9fa44730d068196b581e511fe544517b1a7d6d
parent7402fbcae1c282e27aafd5c5c90aca7eabbdf45c
RISC-V: Add missing hint instructions from RV128I.

gas/
* testsuite/gas/riscv/c-zero-imm.d: Add more tests.
* testsuite/gas/riscv/c-zero-imm.s: Likewise.
* testsuite/gas/riscv/c-zero-reg.d: Fix typo in test.  Add disabled
future test for RV128 support.
* testsuite/gas/riscv/c-zero-reg.s: Likewise.

include/
* opcode/riscv-opc.h (MATCH_C_SRLI64, MASK_C_SRLI64): New.
(MATCH_C_SRAI64, MASK_C_SRAI64): New.
(MATCH_C_SLLI64, MASK_C_SLLI64): New.

opcodes/
* riscv-opc.c (match_c_slli, match_slli_as_c_slli): New.
(match_c_slli64, match_srxi_as_c_srxi): New.
(riscv_opcodes) <slli, sll>: Use match_slli_as_c_slli.
<srli, srl, srai, sra>: Use match_srxi_as_c_srxi.
<c.slli, c.srli, c.srai>: Use match_s_slli.
<c.slli64, c.srli64, c.srai64>: New.
gas/ChangeLog
gas/testsuite/gas/riscv/c-zero-imm.d
gas/testsuite/gas/riscv/c-zero-imm.s
gas/testsuite/gas/riscv/c-zero-reg.d
gas/testsuite/gas/riscv/c-zero-reg.s
include/ChangeLog
include/opcode/riscv-opc.h
opcodes/ChangeLog
opcodes/riscv-opc.c