2009-09-29 16:17:19 +02:00
|
|
|
/* rx-defs.h Renesas RX internal definitions
|
2018-01-03 06:17:27 +01:00
|
|
|
Copyright (C) 2008-2018 Free Software Foundation, Inc.
|
2009-09-29 16:17:19 +02:00
|
|
|
|
|
|
|
This file is part of GAS, the GNU Assembler.
|
|
|
|
|
|
|
|
GAS is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 3, or (at your option)
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
GAS is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with GAS; see the file COPYING. If not, write to the Free
|
|
|
|
Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
|
|
|
|
02110-1301, USA. */
|
|
|
|
|
|
|
|
#ifndef RX_DEFS_H
|
2013-07-18 14:15:15 +02:00
|
|
|
#define RX_DEFS_H
|
2009-09-29 16:17:19 +02:00
|
|
|
|
|
|
|
/* Third operand to rx_op. */
|
|
|
|
#define RXREL_SIGNED 0
|
|
|
|
#define RXREL_UNSIGNED 1
|
|
|
|
#define RXREL_NEGATIVE 2
|
|
|
|
#define RXREL_PCREL 3
|
|
|
|
#define RXREL_NEGATIVE_BORROW 4
|
|
|
|
|
|
|
|
#define RX_RELAX_NONE 0
|
|
|
|
#define RX_RELAX_BRANCH 1
|
|
|
|
#define RX_RELAX_IMM 2
|
|
|
|
#define RX_RELAX_DISP 3
|
|
|
|
|
2013-07-18 14:15:15 +02:00
|
|
|
enum rx_cpu_types
|
|
|
|
{
|
|
|
|
RX600,
|
|
|
|
RX610,
|
|
|
|
RX200,
|
2015-12-15 10:26:56 +01:00
|
|
|
RX100,
|
|
|
|
RXV2
|
2013-07-18 14:15:15 +02:00
|
|
|
};
|
|
|
|
|
2011-10-05 16:13:31 +02:00
|
|
|
extern int rx_pid_register;
|
|
|
|
extern int rx_gp_register;
|
2013-07-18 14:15:15 +02:00
|
|
|
extern enum rx_cpu_types rx_cpu;
|
2011-10-05 16:13:31 +02:00
|
|
|
|
2011-10-25 22:36:22 +02:00
|
|
|
extern int rx_error (const char *);
|
2009-09-29 16:17:19 +02:00
|
|
|
extern void rx_lex_init (char *, char *);
|
|
|
|
extern void rx_base1 (int);
|
|
|
|
extern void rx_base2 (int, int);
|
|
|
|
extern void rx_base3 (int, int, int);
|
|
|
|
extern void rx_base4 (int, int, int, int);
|
|
|
|
extern void rx_field (int, int, int);
|
|
|
|
extern void rx_op (expressionS, int, int);
|
|
|
|
extern void rx_disp3 (expressionS, int);
|
|
|
|
extern void rx_field5s (expressionS);
|
|
|
|
extern void rx_field5s2 (expressionS);
|
|
|
|
extern void rx_relax (int, int);
|
|
|
|
extern void rx_linkrelax_dsp (int);
|
|
|
|
extern void rx_linkrelax_imm (int);
|
|
|
|
extern void rx_linkrelax_branch (void);
|
|
|
|
extern int rx_parse (void);
|
|
|
|
extern int rx_wrap (void);
|
2015-04-09 13:48:37 +02:00
|
|
|
extern void rx_note_string_insn_use (void);
|
2009-09-29 16:17:19 +02:00
|
|
|
|
|
|
|
extern char * rx_lex_start;
|
|
|
|
extern char * rx_lex_end;
|
2013-07-18 14:15:15 +02:00
|
|
|
|
|
|
|
#endif /* RX_DEFS_H */
|