callfuncs.exp: avoid spurious register differences in sparc64 targets.
[deliverable/binutils-gdb.git] / gas / config / tc-bfin.h
CommitLineData
07c1b327 1/* tc-bfin.h - header file for tc-bfin.c
b90efa5b 2 Copyright (C) 2005-2015 Free Software Foundation, Inc.
07c1b327
CM
3
4 This file is part of GAS, the GNU Assembler.
5
6 GAS is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
ec2655a6 8 the Free Software Foundation; either version 3, or (at your option)
07c1b327
CM
9 any later version.
10
11 GAS 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.
15
16 You should have received a copy of the GNU General Public License
17 along with GAS; see the file COPYING. If not, write to the Free
18 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
19 02110-1301, USA. */
20
21#define TC_BFIN 1
22#define TC_ADI_BFIN 1
23
24#define TARGET_BYTES_BIG_ENDIAN 0
25
26#define TARGET_ARCH bfd_arch_bfin
27
28/*
29 * Define the target format macro here. The value for this should be
ee9e7c78 30 * "elf32-bfin", not "elf32-little-bfin". Since the BFD source file
07c1b327
CM
31 * elf32-bfin.c defines TARGET_LITTLE_NAME to be "elf32-little-bfin",
32 * we must use this value, until this is corrected and BFD is rebuilt. */
33#ifdef OBJ_ELF
ee9e7c78 34#define TARGET_FORMAT "elf32-bfin"
07c1b327
CM
35#endif
36
37#define LISTING_HEADER "BFIN GAS "
38
39#define WORKING_DOT_WORD
40
2e57ce7b 41extern bfd_boolean bfin_start_label (char *);
07c1b327 42
07c1b327
CM
43#define md_number_to_chars number_to_chars_littleendian
44#define md_convert_frag(b,s,f) as_fatal ("bfin convert_frag\n");
45
46/* Allow for [, ], etc. */
47#define LEX_BR 6
48
49#define TC_EOL_IN_INSN(PTR) (bfin_eol_in_insn(PTR) ? 1 : 0)
5a49b8ac 50extern bfd_boolean bfin_eol_in_insn (char *);
07c1b327 51
aaceb81c
JZ
52/* Almost all instructions of Blackfin contain an = character. */
53#define TC_EQUAL_IN_INSN(C, NAME) 1
54
ee9e7c78 55#define NOP_OPCODE 0x0000
07c1b327
CM
56
57#define LOCAL_LABELS_FB 1
58
59#define DOUBLESLASH_LINE_COMMENTS
60
2e57ce7b
AM
61#define TC_START_LABEL(STR, NUL_CHAR, NEXT_CHAR) \
62 (NEXT_CHAR == ':' && bfin_start_label (STR))
07c1b327 63#define tc_fix_adjustable(FIX) bfin_fix_adjustable (FIX)
5a49b8ac 64extern bfd_boolean bfin_fix_adjustable (struct fix *);
07c1b327
CM
65
66#define TC_FORCE_RELOCATION(FIX) bfin_force_relocation (FIX)
5a49b8ac 67extern int bfin_force_relocation (struct fix *);
07c1b327
CM
68
69/* Call md_pcrel_from_section(), not md_pcrel_from(). */
70#define MD_PCREL_FROM_SECTION(FIX, SEC) md_pcrel_from_section (FIX, SEC)
5a49b8ac 71extern long md_pcrel_from_section (struct fix *, segT);
07c1b327 72
beb6bfe8
BS
73/* Values passed to md_apply_fix3 don't include symbol values. */
74#define MD_APPLY_SYM_VALUE(FIX) 0
75
d31f0f6d
AM
76/* This target is buggy, and sets fix size too large. */
77#define TC_FX_SIZE_SLACK(FIX) 2
78
6306cd85
BS
79extern unsigned int bfin_anomaly_checks;
80
81/* Anomaly checking */
82#define AC_05000074 0x00000001
83#define ENABLE_AC_05000074 (bfin_anomaly_checks & AC_05000074)
84
07c1b327 85/* end of tc-bfin.h */
This page took 0.525041 seconds and 4 git commands to generate.