[ARC] Improve parsing instruction operands.
authorClaudiu Zissulescu <claziss@gmail.com>
Tue, 7 Jan 2020 13:29:16 +0000 (15:29 +0200)
committerClaudiu Zissulescu <claziss@gmail.com>
Tue, 7 Jan 2020 13:29:31 +0000 (15:29 +0200)
commit2a1ebfb221f5f52a743b7ea4c504a7318956c49c
tree2cc322ae1838a24b87fcdf27dad55ada867968b2
parentbb82aefe17866cdcb996ae35a3895bb36b4d674b
[ARC] Improve parsing instruction operands.

We use gas' expression function to parse the operands of an
instruction in a generic way. There are situations when we have labels
and registers having the same name as well as the substraction sign
doesn't always stands for the arithmetical operation but for the
register range (e.g. enter instruction). This patch improves parsing
symbols found in a instruction operand, cleans up code and avoids
using default or undefined variables.

gas/
xxxx-xx-xx  Claudiu Zissulescu  <claziss@synopsys.com>

* config/tc-arc.c (parse_reloc_symbol): New function.
(tokenize_arguments): Clean up, use parse_reloc_symbol function.
(md_operand): Set X_md to absent.
(arc_parse_name): Check for X_md.
gas/ChangeLog
gas/config/tc-arc.c
This page took 0.024555 seconds and 4 git commands to generate.