1 /* tc-tile.h - Macros and type defines for a TILEPro chip.
2 Copyright 2011 Free Software Foundation, Inc.
4 This file is part of GAS, the GNU Assembler.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19 MA 02110-1301, USA. */
23 #include "opcode/tilepro.h"
27 #define TARGET_BYTES_BIG_ENDIAN 0
29 #define WORKING_DOT_WORD
31 #define TARGET_ARCH bfd_arch_tilepro
33 #define TARGET_FORMAT "elf32-tilepro"
36 #define DWARF2_LINE_MIN_INSN_LENGTH 8
38 #define md_number_to_chars number_to_chars_littleendian
40 #define DIFF_EXPR_OK /* foo-. gets turned into PC relative relocs */
42 #define HANDLE_ALIGN(fragp) tilepro_handle_align (fragp)
43 extern void tilepro_handle_align (struct frag
*);
45 #define MAX_MEM_FOR_RS_ALIGN_CODE (7 + 8)
47 struct tilepro_operand
;
48 #define TC_FIX_TYPE const struct tilepro_operand *
50 /* Initialize the TC_FIX_TYPE field. */
51 #define TC_INIT_FIX_DATA(FIX) \
54 extern void tilepro_cons_fix_new (struct frag
*, int,
55 int, struct expressionS
*);
57 #define TC_CONS_FIX_NEW(FRAG, WHERE, NBYTES, EXP) \
58 tilepro_cons_fix_new (FRAG, WHERE, NBYTES, EXP)
60 extern int tilepro_parse_name (char *, expressionS
*, char *);
61 #define md_parse_name(name, e, m, nextP) tilepro_parse_name (name, e, nextP)
63 extern int tilepro_fix_adjustable (struct fix
*);
64 #define tc_fix_adjustable(FIX) tilepro_fix_adjustable (FIX)
66 extern int tilepro_unrecognized_line (int);
67 #define tc_unrecognized_line(ch) tilepro_unrecognized_line (ch)
69 /* Values passed to md_apply_fix3 don't include the symbol value. */
70 #define MD_APPLY_SYM_VALUE(FIX) 0
72 #define md_convert_frag(b,s,f) \
73 as_fatal ("tilepro convert_frag called")
74 #define md_estimate_size_before_relax(f,s) \
75 (as_fatal ("tilepro estimate_size_before_relax called"),1)
78 #define md_section_align(seg,size) (size)
80 /* We want .cfi_* pseudo-ops for generating unwind info. */
81 #define TARGET_USE_CFIPOP 1
83 #define tc_cfi_frame_initial_instructions \
84 tilepro_cfi_frame_initial_instructions
85 extern void tilepro_cfi_frame_initial_instructions (void);
87 #define tc_regname_to_dw2regnum tc_tilepro_regname_to_dw2regnum
88 extern int tc_tilepro_regname_to_dw2regnum (char *);
90 #define DWARF2_DEFAULT_RETURN_COLUMN 55
91 #define DWARF2_CIE_DATA_ALIGNMENT (-4)
93 #endif /* TC_TILEPRO */