2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / config / i960 / i960-protos.h
blob269a40be19cbbd99622c0cd221a1e2788cbd1c2a
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.
8 This file is part of GCC.
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.
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.
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. */
25 #ifndef GCC_I960_PROTOS_H
26 #define GCC_I960_PROTOS_H
28 #ifdef RTX_CODE
29 extern struct rtx_def *legitimize_address (rtx, rtx, enum machine_mode);
30 /* Define the function that build the compare insn for scc and bcc. */
32 extern struct rtx_def *gen_compare_reg (enum rtx_code, rtx, rtx);
34 /* Define functions in i960.c and used in insn-output.c. */
36 extern const char *i960_output_ldconst (rtx, rtx);
37 extern const char *i960_output_call_insn (rtx, rtx, rtx, rtx);
38 extern const char *i960_output_ret_insn (rtx);
39 extern const char *i960_output_move_double (rtx, rtx);
40 extern const char *i960_output_move_double_zero (rtx);
41 extern const char *i960_output_move_quad (rtx, rtx);
42 extern const char *i960_output_move_quad_zero (rtx);
44 extern int literal (rtx, enum machine_mode);
45 extern int hard_regno_mode_ok (int, enum machine_mode);
46 extern int fp_literal (rtx, enum machine_mode);
47 extern int signed_literal (rtx, enum machine_mode);
48 extern int legitimate_address_p (enum machine_mode, rtx, int);
49 extern void i960_print_operand (FILE *, rtx, int);
50 extern int fpmove_src_operand (rtx, enum machine_mode);
51 extern int arith_operand (rtx, enum machine_mode);
52 extern int logic_operand (rtx, enum machine_mode);
53 extern int fp_arith_operand (rtx, enum machine_mode);
54 extern int signed_arith_operand (rtx, enum machine_mode);
55 extern int fp_literal_one (rtx, enum machine_mode);
56 extern int fp_literal_zero (rtx, enum machine_mode);
57 extern int symbolic_memory_operand (rtx, enum machine_mode);
58 extern int eq_or_neq (rtx, enum machine_mode);
59 extern int arith32_operand (rtx, enum machine_mode);
60 extern int power2_operand (rtx, enum machine_mode);
61 extern int cmplpower2_operand (rtx, enum machine_mode);
62 extern enum machine_mode select_cc_mode (RTX_CODE, rtx);
63 extern int emit_move_sequence (rtx *, enum machine_mode);
64 extern int i960_bypass (rtx, rtx, rtx, int);
65 extern void i960_print_operand_addr (FILE *, rtx);
66 extern int i960_expr_alignment (rtx, int);
67 extern int i960_improve_align (rtx, rtx, int);
68 extern int i960_si_ti (rtx, rtx);
69 extern int i960_si_di (rtx, rtx);
70 #ifdef TREE_CODE
71 extern struct rtx_def *i960_function_arg (CUMULATIVE_ARGS *,
72 enum machine_mode,
73 tree, int);
74 extern rtx i960_va_arg (tree, tree);
75 extern void i960_va_start (tree, rtx);
76 #endif /* TREE_CODE */
77 extern enum reg_class secondary_reload_class (enum reg_class, enum machine_mode, rtx);
78 #endif /* RTX_CODE */
80 #ifdef TREE_CODE
81 extern void i960_function_name_declare (FILE *, const char *, tree);
82 extern void i960_function_arg_advance (CUMULATIVE_ARGS *, enum machine_mode, tree, int);
83 extern int i960_round_align (int, tree);
84 extern void i960_setup_incoming_varargs (CUMULATIVE_ARGS *, enum machine_mode, tree, int *, int);
85 extern int i960_final_reg_parm_stack_space (int, tree);
86 extern int i960_reg_parm_stack_space (tree);
87 #endif /* TREE_CODE */
89 extern int process_pragma (int(*)(void), void(*)(int), const char *);
90 extern int i960_object_bytes_bitalign (int);
91 extern void i960_initialize (void);
92 extern int bitpos (unsigned int);
93 extern int is_mask (unsigned int);
94 extern int bitstr (unsigned int, int *, int *);
95 extern int compute_frame_size (int);
96 extern void output_function_profiler (FILE *, int);
97 extern void i960_scan_opcode (const char *);
99 extern void i960_pr_align (struct cpp_reader *);
100 extern void i960_pr_noalign (struct cpp_reader *);
102 #endif /* ! GCC_I960_PROTOS_H */