commit | 8970c0224e3c36c565672089e38de42765e87f47 | [log] [tgz] |
---|---|---|
author | Jim Wilson <jimw@sifive.com> | Mon Dec 10 16:40:46 2018 -0800 |
committer | Jim Wilson <jimw@sifive.com> | Mon Dec 10 16:40:46 2018 -0800 |
tree | 99c04031e54573f4e98ec30223c02ca543b393a7 | |
parent | 5136770380a3a829463d5ef29fa8339d386db51c [diff] |
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.