OSDN Git Service

fa7941e935884bd692e5f0c4339e1f4cddb3c1a8
[pf3gnuchains/gcc-fork.git] / gcc / config / i960 / i960-protos.h
1 /* Definitions of target machine for GNU compiler, for Intel 80960
2    Copyright (C) 2000
3    Free Software Foundation, Inc.
4    Contributed by Steven McGeady, Intel Corp.
5    Additional Work by Glenn Colon-Bonet, Jonathan Shapiro, Andy Wilson
6    Converted to GCC 2.0 by Jim Wilson and Michael Tiemann, Cygnus Support.
7
8 This file is part of GCC.
9
10 GCC is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2, or (at your option)
13 any later version.
14
15 GCC is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with GCC; see the file COPYING.  If not, write to
22 the Free Software Foundation, 59 Temple Place - Suite 330,
23 Boston, MA 02111-1307, USA.  */
24
25 #ifndef GCC_I960_PROTOS_H
26 #define GCC_I960_PROTOS_H
27
28 #ifdef RTX_CODE
29 extern struct rtx_def *legitimize_address PARAMS ((rtx, rtx, enum machine_mode));
30 /* Define the function that build the compare insn for scc and bcc.  */
31
32 extern struct rtx_def *gen_compare_reg PARAMS ((enum rtx_code, rtx, rtx));
33
34 /* Define functions in i960.c and used in insn-output.c.  */
35
36 extern const char *i960_output_ldconst PARAMS ((rtx, rtx));
37 extern const char *i960_output_call_insn PARAMS ((rtx, rtx, rtx, rtx));
38 extern const char *i960_output_ret_insn PARAMS ((rtx));
39 extern const char *i960_output_move_double PARAMS ((rtx, rtx));
40 extern const char *i960_output_move_double_zero PARAMS ((rtx));
41 extern const char *i960_output_move_quad PARAMS ((rtx, rtx));
42 extern const char *i960_output_move_quad_zero PARAMS ((rtx));
43
44 extern int literal PARAMS ((rtx, enum machine_mode));
45 extern int hard_regno_mode_ok PARAMS ((int, enum machine_mode));
46 extern int fp_literal PARAMS ((rtx, enum machine_mode));
47 extern int signed_literal PARAMS ((rtx, enum machine_mode));
48 extern int legitimate_address_p PARAMS ((enum machine_mode, rtx, int));
49 extern void i960_print_operand PARAMS ((FILE *, rtx, int));
50 extern int fpmove_src_operand PARAMS ((rtx, enum machine_mode));
51 extern int arith_operand PARAMS ((rtx, enum machine_mode));
52 extern int logic_operand PARAMS ((rtx, enum machine_mode));
53 extern int fp_arith_operand PARAMS ((rtx, enum machine_mode));
54 extern int signed_arith_operand PARAMS ((rtx, enum machine_mode));
55 extern int fp_literal_one PARAMS ((rtx, enum machine_mode));
56 extern int fp_literal_zero PARAMS ((rtx, enum machine_mode));
57 extern int symbolic_memory_operand PARAMS ((rtx, enum machine_mode));
58 extern int eq_or_neq PARAMS ((rtx, enum machine_mode));
59 extern int arith32_operand PARAMS ((rtx, enum machine_mode));
60 extern int power2_operand PARAMS ((rtx, enum machine_mode));
61 extern int cmplpower2_operand PARAMS ((rtx, enum machine_mode));
62 extern enum machine_mode select_cc_mode PARAMS ((RTX_CODE, rtx));
63 extern int emit_move_sequence PARAMS ((rtx *, enum machine_mode));
64 extern int i960_bypass PARAMS ((rtx, rtx, rtx, int));
65 extern void i960_print_operand_addr PARAMS ((FILE *, rtx));
66 extern int i960_expr_alignment PARAMS ((rtx, int));
67 extern int i960_improve_align PARAMS ((rtx, rtx, int));
68 extern int i960_si_ti PARAMS ((rtx, rtx));
69 extern int i960_si_di PARAMS ((rtx, rtx));
70 #ifdef TREE_CODE
71 extern struct rtx_def *i960_function_arg PARAMS ((CUMULATIVE_ARGS *,
72                                                   enum machine_mode,
73                                                   tree, int));
74 extern rtx i960_va_arg PARAMS ((tree, tree));
75 extern void i960_va_start PARAMS ((tree, rtx));
76 #endif /* TREE_CODE */
77 extern enum reg_class secondary_reload_class PARAMS ((enum reg_class, enum machine_mode, rtx));
78 #endif /* RTX_CODE */
79
80 #ifdef TREE_CODE
81 extern void i960_function_name_declare PARAMS ((FILE *, const char *, tree));
82 extern void i960_function_arg_advance PARAMS ((CUMULATIVE_ARGS *, enum machine_mode, tree, int));
83 extern int i960_round_align PARAMS ((int, tree));
84 extern void i960_setup_incoming_varargs PARAMS ((CUMULATIVE_ARGS *, enum machine_mode, tree, int *, int));
85 extern int i960_final_reg_parm_stack_space PARAMS ((int, tree));
86 extern int i960_reg_parm_stack_space PARAMS ((tree));
87 #endif /* TREE_CODE */
88
89 extern int process_pragma PARAMS ((int(*)(void), void(*)(int), const char *));
90 extern int i960_object_bytes_bitalign PARAMS ((int));
91 extern void i960_initialize PARAMS ((void));
92 extern int bitpos PARAMS ((unsigned int));
93 extern int is_mask PARAMS ((unsigned int));
94 extern int bitstr PARAMS ((unsigned int, int *, int *));
95 extern int compute_frame_size PARAMS ((int));
96 extern void output_function_profiler PARAMS ((FILE *, int));
97 extern void i960_scan_opcode PARAMS ((const char *));
98
99 extern void i960_pr_align PARAMS ((struct cpp_reader *));
100 extern void i960_pr_noalign PARAMS ((struct cpp_reader *));
101
102 #endif /* ! GCC_I960_PROTOS_H  */