OSDN Git Service

* dsp16xx-protos.h: New file.
[pf3gnuchains/gcc-fork.git] / gcc / config / dsp16xx / dsp16xx-protos.h
1 /* Definitions of target machine for GNU compiler.  AT&T DSP1600.
2    Copyright (C) 2000 Free Software Foundation, Inc.
3    Contributed by Michael Collison (collison@world.std.com).
4
5 This file is part of GNU CC.
6
7 GNU CC 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 1, or (at your option)
10 any later version.
11
12 GNU CC 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 GNU CC; see the file COPYING.  If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.  */
21
22 #ifdef RTX_CODE
23 extern struct rtx_def *gen_compare_reg PARAMS ((enum rtx_code, rtx, rtx));
24 extern int call_address_operand PARAMS ((rtx, enum machine_mode));
25 extern int arith_reg_operand PARAMS ((rtx, enum machine_mode));
26 extern int symbolic_address_operand PARAMS ((rtx, enum machine_mode));
27 extern int Y_address_operand PARAMS ((rtx, enum machine_mode));
28 extern int sp_operand PARAMS ((rtx, enum machine_mode));
29 extern int sp_operand2 PARAMS ((rtx, enum machine_mode));
30 extern int nonmemory_arith_operand PARAMS ((rtx, enum machine_mode));
31 extern int dsp16xx_comparison_operator PARAMS ((rtx, enum machine_mode));
32
33 extern void notice_update_cc PARAMS ((rtx));
34 extern void double_reg_from_memory PARAMS ((rtx[]));
35 extern void double_reg_to_memory PARAMS ((rtx[]));
36 extern enum rtx_code next_cc_user_code PARAMS ((rtx));
37 extern int next_cc_user_unsigned PARAMS ((rtx));
38 extern struct rtx_def *gen_tst_reg PARAMS ((rtx));
39 extern const char *output_block_move PARAMS ((rtx[]));
40 extern enum reg_class preferred_reload_class PARAMS ((rtx, enum reg_class));
41 extern enum reg_class secondary_reload_class PARAMS ((enum reg_class,
42                                                       enum machine_mode, rtx));
43 extern int emit_move_sequence PARAMS ((rtx *, enum machine_mode));
44 extern void print_operand PARAMS ((FILE *, rtx, int));
45 extern void print_operand_address PARAMS ((FILE *, rtx));
46 extern void output_dsp16xx_float_const PARAMS ((rtx *));
47 extern void emit_1600_core_shift PARAMS ((enum rtx_code, rtx *, int));
48 extern int dsp16xx_address_cost PARAMS ((rtx));
49 extern int symbolic_address_p PARAMS ((rtx));
50 #endif /* RTX_CODE */
51
52
53 #ifdef TREE_CODE
54 extern struct rtx_def *dsp16xx_function_arg PARAMS ((CUMULATIVE_ARGS,
55                                                      enum machine_mode,
56                                                      tree, int));
57 extern void dsp16xx_function_arg_advance PARAMS ((CUMULATIVE_ARGS *,
58                                                   enum machine_mode,
59                                                   tree, int));
60 #endif /* TREE_CODE */
61
62 extern void dsp16xx_invalid_register_for_compare PARAMS ((void));
63 extern int class_max_nregs PARAMS ((enum reg_class, enum machine_mode));
64 extern enum reg_class limit_reload_class PARAMS ((enum reg_class, enum machine_mode));
65 extern int dsp16xx_register_move_cost PARAMS ((enum reg_class, enum reg_class));
66 extern int dsp16xx_makes_calls PARAMS ((void));
67 extern long compute_frame_size PARAMS ((int));
68 extern int dsp16xx_call_saved_register PARAMS ((int));
69 extern int dsp16xx_call_saved_register PARAMS ((int));
70 extern void init_emulation_routines PARAMS ((void));
71 extern int ybase_regs_ever_used PARAMS ((void));
72 extern void override_options PARAMS ((void));
73 extern int dsp16xx_starting_frame_offset PARAMS ((void));
74 extern int initial_frame_pointer_offset PARAMS ((void));
75 extern void asm_output_common PARAMS ((FILE *, const char *, int, int));
76 extern void asm_output_local PARAMS ((FILE *, const char *, int, int));
77 extern void asm_output_float PARAMS ((FILE *, double));
78 extern void asm_output_long PARAMS ((FILE *, long));
79 extern void dsp16xx_file_start PARAMS ((void));
80 extern struct rtx_def *(*dsp16xx_compare_gen) PARAMS (());
81 extern int hard_regno_mode_ok PARAMS ((int, enum machine_mode));
82 extern enum reg_class dsp16xx_reg_class_from_letter PARAMS ((int));
83 extern int regno_reg_class PARAMS ((int));
84 extern void function_prologue PARAMS ((FILE *, int));
85 extern void function_epilogue PARAMS ((FILE *, int));