1 /* Prototypes for pa.c functions used in the md file & elsewhere.
2 Copyright (C) 2000-2014 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC 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, or (at your option)
11 GCC 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 GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
21 /* Prototype function used in various macros. */
22 extern rtx
pa_eh_return_handler_rtx (void);
24 /* Define functions in pa.c and used in insn-output.c. */
26 extern const char *pa_output_and (rtx
*);
27 extern const char *pa_output_64bit_and (rtx
*);
28 extern const char *pa_output_ior (rtx
*);
29 extern const char *pa_output_64bit_ior (rtx
*);
30 extern const char *pa_output_move_double (rtx
*);
31 extern const char *pa_output_fp_move_double (rtx
*);
32 extern const char *pa_output_block_move (rtx
*, int);
33 extern const char *pa_output_block_clear (rtx
*, int);
34 extern const char *pa_output_cbranch (rtx
*, int, rtx_insn
*);
35 extern const char *pa_output_lbranch (rtx
, rtx_insn
*, int);
36 extern const char *pa_output_bb (rtx
*, int, rtx_insn
*, int);
37 extern const char *pa_output_bvb (rtx
*, int, rtx_insn
*, int);
38 extern const char *pa_output_dbra (rtx
*, rtx_insn
*, int);
39 extern const char *pa_output_movb (rtx
*, rtx_insn
*, int, int);
40 extern const char *pa_output_parallel_movb (rtx
*, rtx_insn
*);
41 extern const char *pa_output_parallel_addb (rtx
*, rtx_insn
*);
42 extern const char *pa_output_call (rtx_insn
*, rtx
, int);
43 extern const char *pa_output_indirect_call (rtx_insn
*, rtx
);
44 extern const char *pa_output_millicode_call (rtx_insn
*, rtx
);
45 extern const char *pa_output_mul_insn (int, rtx_insn
*);
46 extern const char *pa_output_div_insn (rtx
*, int, rtx_insn
*);
47 extern const char *pa_output_mod_insn (int, rtx_insn
*);
48 extern const char *pa_singlemove_string (rtx
*);
49 extern void pa_output_addr_vec (rtx
, rtx
);
50 extern void pa_output_addr_diff_vec (rtx
, rtx
);
51 extern void pa_output_arg_descriptor (rtx
);
52 extern void pa_output_global_address (FILE *, rtx
, int);
53 extern void pa_print_operand (FILE *, rtx
, int);
54 extern void pa_encode_label (rtx
);
55 extern int pa_symbolic_expression_p (rtx
);
56 extern int pa_adjust_insn_length (rtx_insn
*, int);
57 extern int pa_fmpyaddoperands (rtx
*);
58 extern int pa_fmpysuboperands (rtx
*);
59 extern void pa_emit_bcond_fp (rtx
[]);
60 extern int pa_emit_move_sequence (rtx
*, machine_mode
, rtx
);
61 extern int pa_emit_hpdiv_const (rtx
*, int);
62 extern int pa_is_function_label_plus_const (rtx
);
63 extern int pa_fpstore_bypass_p (rtx_insn
*, rtx_insn
*);
64 extern int pa_attr_length_millicode_call (rtx_insn
*);
65 extern int pa_attr_length_call (rtx_insn
*, int);
66 extern int pa_attr_length_indirect_call (rtx_insn
*);
67 extern rtx
pa_legitimize_reload_address (rtx
, machine_mode
,
70 /* Declare functions defined in pa.c and used in templates. */
72 extern rtx
pa_return_addr_rtx (int, rtx
);
75 /* expr.h defines ARGS_SIZE_RTX and `enum direction' */
77 extern enum direction
pa_function_arg_padding (machine_mode
, const_tree
);
79 #endif /* ARGS_SIZE_RTX */
80 extern int pa_insn_refs_are_delayed (rtx_insn
*);
81 extern rtx
pa_get_deferred_plabel (rtx
);
84 extern int pa_and_mask_p (unsigned HOST_WIDE_INT
);
85 extern int pa_cint_ok_for_move (HOST_WIDE_INT
);
86 extern int pa_ior_mask_p (unsigned HOST_WIDE_INT
);
87 extern int pa_ldil_cint_p (HOST_WIDE_INT
);
88 extern int pa_shadd_constant_p (int);
89 extern int pa_zdepi_cint_p (unsigned HOST_WIDE_INT
);
91 extern void pa_output_ascii (FILE *, const char *, int);
92 extern HOST_WIDE_INT
pa_compute_frame_size (HOST_WIDE_INT
, int *);
93 extern void pa_expand_prologue (void);
94 extern void pa_expand_epilogue (void);
95 extern bool pa_can_use_return_insn (void);
97 /* Miscellaneous functions in pa.c. */
99 extern int pa_reloc_needed (tree
);
100 extern bool pa_return_in_memory (const_tree
, const_tree
);
101 #endif /* TREE_CODE */
103 extern void pa_asm_output_aligned_bss (FILE *, const char *,
104 unsigned HOST_WIDE_INT
,
106 extern void pa_asm_output_aligned_common (FILE *, const char *,
107 unsigned HOST_WIDE_INT
,
109 extern void pa_asm_output_aligned_local (FILE *, const char *,
110 unsigned HOST_WIDE_INT
,
112 extern void pa_hpux_asm_output_external (FILE *, tree
, const char *);
113 extern bool pa_cannot_change_mode_class (machine_mode
, machine_mode
,
115 extern bool pa_modes_tieable_p (machine_mode
, machine_mode
);
116 extern HOST_WIDE_INT
pa_initial_elimination_offset (int, int);
118 extern const int pa_magic_milli
[];