1/* tc-visium.h -- Header file for tc-visium.c.
2
3   Copyright (C) 2005-2022 Free Software Foundation, Inc.
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 this program; if not, write to the Free Software
19   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20   MA 02110-1301, USA.  */
21
22#define TC_VISIUM
23
24#define LISTING_HEADER "VISIUM GAS "
25
26/* The target BFD architecture.  */
27#define TARGET_ARCH bfd_arch_visium
28
29#define TARGET_BYTES_BIG_ENDIAN 1
30
31#define TARGET_FORMAT "elf32-visium"
32
33/* Permit temporary numeric labels.  */
34#define LOCAL_LABELS_FB 1
35
36/* .-foo gets turned into PC relative relocs.  */
37#define DIFF_EXPR_OK
38
39/* We don't support external symbols overriding.  */
40#define EXTERN_FORCE_RELOC 0
41
42/* We don't need to handle .word strangely.  */
43#define WORKING_DOT_WORD
44
45#define tc_fix_adjustable(FIXP) visium_fix_adjustable (FIXP)
46extern bool visium_fix_adjustable (struct fix *);
47
48#define HANDLE_ALIGN(FRAGP)		 \
49  if ((FRAGP)->fr_type == rs_align_code) \
50    visium_handle_align (FRAGP);
51extern void visium_handle_align (struct frag *);
52
53#define md_relax_frag(segment, fragp, stretch) \
54  visium_relax_frag (segment, fragp, stretch)
55extern int visium_relax_frag (asection *, struct frag *, long);
56
57/* Call md_pcrel_from_section, not md_pcrel_from.  */
58#define MD_PCREL_FROM_SECTION(FIXP, SEC) visium_pcrel_from_section (FIXP, SEC)
59extern long visium_pcrel_from_section (struct fix *, segT);
60
61/* Values passed to md_apply_fix3 don't include the symbol value.  */
62#define MD_APPLY_SYM_VALUE(FIX) 0
63
64#define md_operand(x)
65
66#define tc_comment_chars visium_comment_chars
67extern const char *visium_comment_chars;
68
69#define TARGET_USE_CFIPOP 1
70
71#define tc_cfi_frame_initial_instructions visium_cfi_frame_initial_instructions
72extern void visium_cfi_frame_initial_instructions (void);
73
74#define tc_regname_to_dw2regnum visium_regname_to_dw2regnum
75extern int visium_regname_to_dw2regnum (char *regname);
76
77#define DWARF2_LINE_MIN_INSN_LENGTH     4
78#define DWARF2_DEFAULT_RETURN_COLUMN    21
79#define DWARF2_CIE_DATA_ALIGNMENT       (-4)
80