diff options
author | Jan Beulich <jbeulich@suse.com> | 2023-01-11 10:31:43 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2023-01-11 10:31:43 +0100 |
commit | f56532cc17868e2c7e765bfd78322157048ff6ec (patch) | |
tree | f15c88fd5a6bd83d12be0503c56b26a92412caba /gdb | |
parent | a95fb4e34650382a4eb0856035129f2a2f0aaf4c (diff) | |
download | binutils-f56532cc17868e2c7e765bfd78322157048ff6ec.zip binutils-f56532cc17868e2c7e765bfd78322157048ff6ec.tar.gz binutils-f56532cc17868e2c7e765bfd78322157048ff6ec.tar.bz2 |
gas/RISC-V: adjust assembler for opcode table re-ordering
PR gas/29940
With the single-operand JAL entry now sitting ahead of the two-operand
one, the parsing of a two-operand insn would first try to parse an 'a'-
style operand, resulting in the insertion of bogus (and otherwise
unused) undefined symbols in the symbol table, having register names.
Since 'a' is used as 1st operand only with J and JAL, and since JAL is
the only insn _also_ allowing for a register as 1st operand (and then
there being a 2nd one), special case this parsing aspect right there.
Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'gdb')
0 files changed, 0 insertions, 0 deletions