FT32 initial support
[deliverable/binutils-gdb.git] / gas / config / tc-ft32.h
1 /* tc-ft32.h -- Header file for tc-ft32.c.
2
3 Copyright (C) 2013-2015 Free Software Foundation, Inc.
4 Contributed by FTDI (support@ftdichip.com)
5
6 This file is part of GAS, the GNU Assembler.
7
8 GAS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
11 any later version.
12
13 GAS is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License along
19 with GAS; see the file COPYING. If not, write to the Free Software
20 Foundation, 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
21
22 #define TC_FT32 1
23 #define TARGET_BYTES_BIG_ENDIAN 0
24 #define WORKING_DOT_WORD
25
26 /* This macro is the BFD architecture to pass to `bfd_set_arch_mach'. */
27 const char *ft32_target_format;
28 #define DEFAULT_TARGET_FORMAT "elf32-ft32"
29 #define TARGET_FORMAT ft32_target_format
30
31 #define TARGET_ARCH bfd_arch_ft32
32
33 #define md_undefined_symbol(NAME) 0
34
35 /* These macros must be defined, but is will be a fatal assembler
36 error if we ever hit them. */
37 #define md_estimate_size_before_relax(A, B) (as_fatal (_("estimate size\n")), 0)
38 #define md_convert_frag(B, S, F) (as_fatal (_("convert_frag\n")))
39
40 /* If you define this macro, it should return the offset between the
41 address of a PC relative fixup and the position from which the PC
42 relative adjustment should be made. On many processors, the base
43 of a PC relative instruction is the next instruction, so this
44 macro would return the length of an instruction. */
45 // #define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from (FIX)
46 // extern long md_pcrel_from (struct fix *);
47
48 /* PC relative operands are relative to the start of the opcode, and
49 the operand is always one byte into the opcode. */
50 #define md_pcrel_from(FIX) \
51 ((FIX)->fx_where + (FIX)->fx_frag->fr_address - 1)
52
53 #define md_section_align(SEGMENT, SIZE) (SIZE)
54
55 #define md_operand(x)
This page took 0.032036 seconds and 4 git commands to generate.