RISC-V: Don't segfault for two regs in auipc or lui.
authorJim Wilson <jimw@sifive.com>
Tue, 11 Dec 2018 00:40:46 +0000 (16:40 -0800)
committerJim Wilson <jimw@sifive.com>
Tue, 11 Dec 2018 00:40:46 +0000 (16:40 -0800)
commit8970c0224e3c36c565672089e38de42765e87f47
tree99c04031e54573f4e98ec30223c02ca543b393a7
parent5136770380a3a829463d5ef29fa8339d386db51c
RISC-V: Don't segfault for two regs in auipc or lui.

gas/
PR gas/23954
* config/tc-riscv.c (my_getSmallExpression): Expand comment for
register support.  Set expr_end if parse a register.
(riscv_ip) <'u'>: Break if imm_expr is not a symbol or constant.
* testsuite/gas/riscv/auipc-parsing.d: New.
* testsuite/gas/riscv/auipc-parsing.l: New.
* testsuite/gas/riscv/auipc-parsing.s: New.
gas/ChangeLog
gas/config/tc-riscv.c
gas/testsuite/gas/riscv/auipc-parsing.d [new file with mode: 0644]
gas/testsuite/gas/riscv/auipc-parsing.l [new file with mode: 0644]
gas/testsuite/gas/riscv/auipc-parsing.s [new file with mode: 0644]