rx-defs.h revision 1.1.1.1.8.1 1 1.1 christos /* rx-defs.h Renesas RX internal definitions
2 1.1 christos Copyright 2008, 2009
3 1.1 christos Free Software Foundation, Inc.
4 1.1 christos
5 1.1 christos This file is part of GAS, the GNU Assembler.
6 1.1 christos
7 1.1 christos GAS is free software; you can redistribute it and/or modify
8 1.1 christos it under the terms of the GNU General Public License as published by
9 1.1 christos the Free Software Foundation; either version 3, or (at your option)
10 1.1 christos any later version.
11 1.1 christos
12 1.1 christos GAS is distributed in the hope that it will be useful,
13 1.1 christos but WITHOUT ANY WARRANTY; without even the implied warranty of
14 1.1 christos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 1.1 christos GNU General Public License for more details.
16 1.1 christos
17 1.1 christos You should have received a copy of the GNU General Public License
18 1.1 christos along with GAS; see the file COPYING. If not, write to the Free
19 1.1 christos Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
20 1.1 christos 02110-1301, USA. */
21 1.1 christos
22 1.1 christos #ifndef RX_DEFS_H
23 1.1 christos #define RX_DEFS_H
24 1.1 christos
25 1.1 christos /* Third operand to rx_op. */
26 1.1 christos #define RXREL_SIGNED 0
27 1.1 christos #define RXREL_UNSIGNED 1
28 1.1 christos #define RXREL_NEGATIVE 2
29 1.1 christos #define RXREL_PCREL 3
30 1.1 christos #define RXREL_NEGATIVE_BORROW 4
31 1.1 christos
32 1.1 christos #define RX_RELAX_NONE 0
33 1.1 christos #define RX_RELAX_BRANCH 1
34 1.1 christos #define RX_RELAX_IMM 2
35 1.1 christos #define RX_RELAX_DISP 3
36 1.1 christos
37 1.1.1.1.8.1 tls extern int rx_pid_register;
38 1.1.1.1.8.1 tls extern int rx_gp_register;
39 1.1.1.1.8.1 tls
40 1.1.1.1.8.1 tls extern int rx_error (const char *);
41 1.1 christos extern void rx_lex_init (char *, char *);
42 1.1 christos extern void rx_base1 (int);
43 1.1 christos extern void rx_base2 (int, int);
44 1.1 christos extern void rx_base3 (int, int, int);
45 1.1 christos extern void rx_base4 (int, int, int, int);
46 1.1 christos extern void rx_field (int, int, int);
47 1.1 christos extern void rx_op (expressionS, int, int);
48 1.1 christos extern void rx_disp3 (expressionS, int);
49 1.1 christos extern void rx_field5s (expressionS);
50 1.1 christos extern void rx_field5s2 (expressionS);
51 1.1 christos extern void rx_relax (int, int);
52 1.1 christos extern void rx_linkrelax_dsp (int);
53 1.1 christos extern void rx_linkrelax_imm (int);
54 1.1 christos extern void rx_linkrelax_branch (void);
55 1.1 christos extern int rx_parse (void);
56 1.1 christos extern int rx_wrap (void);
57 1.1 christos
58 1.1 christos extern char * rx_lex_start;
59 1.1 christos extern char * rx_lex_end;
60 1.1 christos #endif
61