diff options
author | Jim Wilson <jimw@sifive.com> | 2018-01-17 14:04:16 -0800 |
---|---|---|
committer | Jim Wilson <jimw@sifive.com> | 2018-01-17 14:04:16 -0800 |
commit | e925c834ecdb4a0ce595ad8d3da9c7d4f499ede0 (patch) | |
tree | f323c5eb0919e82237abab99213414c1e822d3e0 /opcodes | |
parent | 9e14690d06ac55136b7f051a2d2b8e173fa3bbdf (diff) | |
download | binutils-gdb-e925c834ecdb4a0ce595ad8d3da9c7d4f499ede0.tar.gz |
RISC-V: Fix bug in prior addi/c.nop patch.
gas/
* config/tc-riscv.c (validate_riscv_insn) <'z'>: New.
(riscv_ip) <'z'>: New.
opcodes/
* riscv-opc.c (riscv_opcodes) <addi>: Use z instead of 0.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/riscv-opc.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 8e0baff4af6..35a16f5031b 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,7 @@ +2018-01-17 Jim Wilson <jimw@sifive.com> + + * riscv-opc.c (riscv_opcodes) <addi>: Use z instead of 0. + 2018-01-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com> * i386-gen.c (cpu_flag_init): Delete CPU_CET_FLAGS, CpuCET. diff --git a/opcodes/riscv-opc.c b/opcodes/riscv-opc.c index a4e4b26598d..4aeb55abb43 100644 --- a/opcodes/riscv-opc.c +++ b/opcodes/riscv-opc.c @@ -232,7 +232,7 @@ const struct riscv_opcode riscv_opcodes[] = {"bne", "I", "s,t,p", MATCH_BNE, MASK_BNE, match_opcode, 0 }, {"addi", "C", "Ct,Cc,CK", MATCH_C_ADDI4SPN, MASK_C_ADDI4SPN, match_c_addi4spn, INSN_ALIAS }, {"addi", "C", "d,CU,Cj", MATCH_C_ADDI, MASK_C_ADDI, match_rd_nonzero, INSN_ALIAS }, -{"addi", "C", "d,CU,0", MATCH_C_NOP, MASK_C_ADDI | MASK_RVC_IMM, match_c_nop, INSN_ALIAS }, +{"addi", "C", "d,CU,z", MATCH_C_NOP, MASK_C_ADDI | MASK_RVC_IMM, match_c_nop, INSN_ALIAS }, {"addi", "C", "Cc,Cc,CL", MATCH_C_ADDI16SP, MASK_C_ADDI16SP, match_c_addi16sp, INSN_ALIAS }, {"addi", "I", "d,s,j", MATCH_ADDI, MASK_ADDI, match_opcode, 0 }, {"add", "C", "d,CU,CV", MATCH_C_ADD, MASK_C_ADD, match_c_add, INSN_ALIAS }, |