This is the mail archive of the mailing list for the binutils project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH]: Rewrite parts of CRX Assembler


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  <>

        * opcode/crx.h (enum argtype): Rename types, remove unused types.

2004-11-05  Tomer Levi  <>

        * crx-opc.c (crx_optab): Rename 'arg_icr' to 'arg_idxr' for Index 
register mode.
        * crx-dis.c: Likewise.

2004-11-05  Tomer Levi  <>

        * 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.

      Tomer Levi

Software Engineer                                   phone: 
CompactRISC Development Tools  fax:        +49-8141-35-11-1378
National Semiconductor GmbH
Livry-Gargan Str. 10                                internet:
82256 Fuerstenfeldbruck, Germany

Attachment: crx.patch
Description: Binary data

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]