[PATCH]: Rewrite parts of CRX Assembler
Tomer Levi
Tomer.Levi@nsc.com
Fri Nov 5 11:01:00 GMT 2004
Hi,
Since there are several parts in the CRX assembler port that are poorly
written, I'm taking the opportunity to rewrite them.
The following patch starts this task - it provides a more generic operand
parsing mechanism than the one used till now.
Tested successfully on the current testsuite.
I will commit these changes shortly.
2004-11-05 Tomer Levi <Tomer.Levi@nsc.com>
* opcode/crx.h (enum argtype): Rename types, remove unused types.
2004-11-05 Tomer Levi <Tomer.Levi@nsc.com>
* crx-opc.c (crx_optab): Rename 'arg_icr' to 'arg_idxr' for Index
register mode.
* crx-dis.c: Likewise.
2004-11-05 Tomer Levi <Tomer.Levi@nsc.com>
* config/tc-crx.c: Rename argument types.
(processing_arg_number): Rename to 'cur_arg_num'.
(get_number_of_bits): Rename to 'set_operand_size'.
(get_operandtype): Rename to 'parse_operand', totally rewrite.
(set_cons_rparams): Rename to 'set_operand', totally rewrite.
(set_indexmode_parameters): Remove function, integrate its code
into 'set_operand'.
(set_operand_size): Get rid of 'Operand Number' function parameter
- use global variable 'cur_arg_num' instead.
Use a local 'argument' pointer to reference the current argument.
(parse_operand): Likewise.
(set_operand): Likewise.
(process_label_constant): Likewise.
Regards,
Tomer Levi
Software Engineer phone:
+49-8141-35-1378
CompactRISC Development Tools fax: +49-8141-35-11-1378
National Semiconductor GmbH mailto:Tomer.Levi@nsc.com
Livry-Gargan Str. 10 internet:
http://www.national.com
82256 Fuerstenfeldbruck, Germany
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crx.patch
Type: application/octet-stream
Size: 37742 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20041105/32af1721/attachment.obj>
More information about the Binutils
mailing list