New Alpha support files, based on files from CMU.
[external/binutils.git] / gas / config / tc-alpha.h
1 /* This file is tc-alpha.h
2    Copyright (C) 1994 Free Software Foundation, Inc.
3    Written by Ken Raeburn <raeburn@cygnus.com>.
4
5    This file is part of GAS, the GNU Assembler.
6
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 2, or (at your option)
10    any later version.
11
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.
16
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
19    the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
20
21 #define TC_ALPHA
22
23 #define TARGET_ARCH                     bfd_arch_alpha
24
25 #define TARGET_FORMAT (OUTPUT_FLAVOR == bfd_target_ecoff_flavour        \
26                        ? "ecoff-littlealpha"                            \
27                        : OUTPUT_FLAVOR == bfd_target_elf_flavour        \
28                        ? "elf64-alpha"                                  \
29                        : "unknown-format")
30
31 #define NEED_LITERAL_POOL
32 #define TC_HANDLES_FX_DONE
33 #define REPEAT_CONS_EXPRESSIONS
34
35 extern int alpha_force_relocation PARAMS ((struct fix *));
36 extern int alpha_fix_adjustable PARAMS ((struct fix *));
37 extern int alpha_frob_symbol PARAMS ((struct symbol *));
38 extern int alpha_validate_fix PARAMS ((struct fix *, segT));
39
40 extern unsigned long alpha_gprmask, alpha_fprmask;
41
42 #define TC_FORCE_RELOCATION(FIXP)       alpha_force_relocation (FIXP)
43 #define tc_fix_adjustable(FIXP)         alpha_fix_adjustable (FIXP)
44 #define RELOC_REQUIRES_SYMBOL
45 #define tc_frob_symbol(S,P)             ((P) = alpha_frob_symbol (S))
46 #define TC_VALIDATE_FIX(F,S,L)          if(alpha_validate_fix(F,S))goto L;
47
48 #define md_convert_frag(b,s,f)          {as_fatal ("alpha convert_frag\n");}
49 #define md_create_long_jump(p,f,t,fr,s) as_fatal("alpha_create_long_jump")
50 #define md_create_short_jump(p,f,t,fr,s) as_fatal("alpha_create_short_jump")
51 #define md_estimate_size_before_relax(f,s) \
52                         (as_fatal("estimate_size_before_relax called"),1)
53 #define md_operand(x)                   0
54
55 extern unsigned long md_section_align PARAMS ((segT, unsigned long));
56
57 #define md_undefined_symbol(name)       (0)
58 extern void alpha_end ();
59 #define md_end()                        alpha_end ()
60
61 extern int alpha_local_label PARAMS ((const char *));
62 #define LOCAL_LABEL(name)               alpha_local_label (name)
63
64 #define md_number_to_chars              number_to_chars_littleendian
65
66 extern int alpha_do_align ();
67 #define md_do_align(n,fill,l)   if (alpha_do_align(n,fill)) goto l