]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gas/config/tc-riscv.c
RISC-V: Fix 4-arg add parsing.
authorJim Wilson <jimw@sifive.com>
Fri, 7 Dec 2018 20:31:05 +0000 (12:31 -0800)
committerJim Wilson <jimw@sifive.com>
Fri, 7 Dec 2018 20:31:05 +0000 (12:31 -0800)
commitf50fabe4f66534c9addacddeaa439e8d164eadda
tree626e34486c1f82beb99131a9895c65e4c61c2ced
parent8bebfcda34f2ea883fa6b87e748ad8a5f72b352f
RISC-V: Fix 4-arg add parsing.

PR gas/23956
gas/
* config/tc-riscv.c (validate_riscv_insn) <'1'>: New case.
(percent_op_null): New.
(riscv_ip) <'j'>: Set imm_reloc before p.
<'1'>: New case.
<'0'>: Use percent_op_null and don't set imm_reloc.
<alu_op>: Handle *args == '1'.
* testsuite/gas/riscv/tprel-add.d: New.
* testsuite/gas/riscv/tprel-add.l: New.
* testsuite/gas/riscv/tprel-add.s: New.
opcodes/
* riscv-opc.c (riscv_opcodes) <"add">: Use 1 not 0 for fourth arg.
gas/ChangeLog
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/tprel-add.d [new file with mode: 0644]
gas/testsuite/gas/riscv/tprel-add.l [new file with mode: 0644]
gas/testsuite/gas/riscv/tprel-add.s [new file with mode: 0644]
opcodes/ChangeLog
opcodes/riscv-opc.c