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