1 /* Definitions of target machine for GNU compiler for IA-32.
2 Copyright (C) 1988, 1992, 1994, 1995, 1996, 1996, 1997, 1998, 1999, 2000
3 Free Software Foundation, Inc.
5 This file is part of GNU CC.
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 2, or (at your option)
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.
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. */
22 /* Functions in i386.c */
23 extern void override_options
PARAMS ((void));
24 extern void order_regs_for_local_alloc
PARAMS ((void));
25 extern void optimization_options
PARAMS ((int, int));
27 extern int ix86_can_use_return_insn_p
PARAMS ((void));
29 extern void asm_output_function_prefix
PARAMS ((FILE *, const char *));
30 extern void load_pic_register
PARAMS ((void));
31 extern HOST_WIDE_INT ix86_initial_elimination_offset
PARAMS((int, int));
32 extern void ix86_expand_prologue
PARAMS ((void));
33 extern void ix86_expand_epilogue
PARAMS ((void));
35 extern void ix86_output_function_block_profiler
PARAMS ((FILE *, int));
36 extern void ix86_output_block_profiler
PARAMS ((FILE *, int));
39 extern int ix86_aligned_p
PARAMS ((rtx
));
41 extern int standard_80387_constant_p
PARAMS ((rtx
));
42 extern int symbolic_reference_mentioned_p
PARAMS ((rtx
));
44 extern int symbolic_operand
PARAMS ((rtx
, enum machine_mode
));
45 extern int pic_symbolic_operand
PARAMS ((rtx
, enum machine_mode
));
46 extern int call_insn_operand
PARAMS ((rtx
, enum machine_mode
));
47 extern int expander_call_insn_operand
PARAMS ((rtx
, enum machine_mode
));
48 extern int constant_call_address_operand
PARAMS ((rtx
, enum machine_mode
));
49 extern int const0_operand
PARAMS ((rtx
, enum machine_mode
));
50 extern int const1_operand
PARAMS ((rtx
, enum machine_mode
));
51 extern int const248_operand
PARAMS ((rtx
, enum machine_mode
));
52 extern int incdec_operand
PARAMS ((rtx
, enum machine_mode
));
53 extern int reg_no_sp_operand
PARAMS ((rtx
, enum machine_mode
));
54 extern int general_no_elim_operand
PARAMS ((rtx
, enum machine_mode
));
55 extern int nonmemory_no_elim_operand
PARAMS ((rtx
, enum machine_mode
));
56 extern int q_regs_operand
PARAMS ((rtx
, enum machine_mode
));
57 extern int non_q_regs_operand
PARAMS ((rtx
, enum machine_mode
));
58 extern int no_comparison_operator
PARAMS ((rtx
, enum machine_mode
));
59 extern int fcmov_comparison_operator
PARAMS ((rtx
, enum machine_mode
));
60 extern int cmp_fp_expander_operand
PARAMS ((rtx
, enum machine_mode
));
61 extern int ext_register_operand
PARAMS ((rtx
, enum machine_mode
));
62 extern int binary_fp_operator
PARAMS ((rtx
, enum machine_mode
));
63 extern int mult_operator
PARAMS ((rtx
, enum machine_mode
));
64 extern int div_operator
PARAMS ((rtx
, enum machine_mode
));
65 extern int arith_or_logical_operator
PARAMS ((rtx
, enum machine_mode
));
66 extern int promotable_binary_operator
PARAMS ((rtx
, enum machine_mode
));
67 extern int memory_displacement_operand
PARAMS ((rtx
, enum machine_mode
));
68 extern int cmpsi_operand
PARAMS ((rtx
, enum machine_mode
));
69 extern int long_memory_operand
PARAMS ((rtx
, enum machine_mode
));
70 extern int aligned_operand
PARAMS ((rtx
, enum machine_mode
));
73 extern int legitimate_pic_address_disp_p
PARAMS ((rtx
));
74 extern int legitimate_address_p
PARAMS ((enum machine_mode
, rtx
, int));
75 extern rtx legitimize_pic_address
PARAMS ((rtx
, rtx
));
76 extern rtx legitimize_address
PARAMS ((rtx
, rtx
, enum machine_mode
));
78 extern void print_reg
PARAMS ((rtx
, int, FILE*));
79 extern void print_operand
PARAMS ((FILE*, rtx
, int));
80 extern void print_operand_address
PARAMS ((FILE*, rtx
));
82 extern void split_di
PARAMS ((rtx
[], int, rtx
[], rtx
[]));
84 extern const char *output_387_binary_op
PARAMS ((rtx
, rtx
*));
85 extern const char *output_fix_trunc
PARAMS ((rtx
, rtx
*));
86 extern const char *output_fp_compare
PARAMS ((rtx
, rtx
*, int, int));
88 extern void i386_dwarf_output_addr_const
PARAMS ((FILE*, rtx
));
89 extern rtx i386_simplify_dwarf_addr
PARAMS ((rtx
));
91 extern void ix86_expand_move
PARAMS ((enum machine_mode
, rtx
[]));
92 extern void ix86_expand_binary_operator
PARAMS ((enum rtx_code
,
93 enum machine_mode
, rtx
[]));
94 extern int ix86_binary_operator_ok
PARAMS ((enum rtx_code
, enum machine_mode
,
96 extern void ix86_expand_unary_operator
PARAMS ((enum rtx_code
, enum machine_mode
,
98 extern int ix86_unary_operator_ok
PARAMS ((enum rtx_code
, enum machine_mode
,
100 extern void ix86_expand_branch
PARAMS ((enum rtx_code
, int, rtx
));
101 extern int ix86_expand_setcc
PARAMS ((enum rtx_code
, int, rtx
));
102 extern int ix86_expand_int_movcc
PARAMS ((rtx
[]));
103 extern int ix86_expand_fp_movcc
PARAMS ((rtx
[]));
104 extern int ix86_split_long_move
PARAMS ((rtx
[]));
105 extern void ix86_split_ashldi
PARAMS ((rtx
*, rtx
));
106 extern void ix86_split_ashrdi
PARAMS ((rtx
*, rtx
));
107 extern void ix86_split_lshrdi
PARAMS ((rtx
*, rtx
));
108 extern void ix86_expand_strlensi_unroll_1
PARAMS ((rtx
, rtx
, rtx
));
110 extern rtx assign_386_stack_local
PARAMS ((enum machine_mode
, int));
111 extern int ix86_attr_length_default
PARAMS ((rtx
));
113 extern int ix86_issue_rate
PARAMS ((void));
114 extern int ix86_adjust_cost
PARAMS ((rtx
, rtx
, rtx
, int));
115 extern void ix86_sched_init
PARAMS ((FILE *, int));
116 extern int ix86_sched_reorder
PARAMS ((FILE *, int, rtx
*, int, int));
117 extern int ix86_variable_issue
PARAMS ((FILE *, int, rtx
, int));
120 extern void init_cumulative_args
PARAMS ((CUMULATIVE_ARGS
*, tree
, rtx
));
121 extern rtx function_arg
PARAMS ((CUMULATIVE_ARGS
*, enum machine_mode
, tree
, int));
122 extern void function_arg_advance
PARAMS ((CUMULATIVE_ARGS
*, enum machine_mode
,
129 extern int ix86_valid_decl_attribute_p
PARAMS ((tree
, tree
, tree
, tree
));
130 extern int ix86_valid_type_attribute_p
PARAMS ((tree
, tree
, tree
, tree
));
131 extern int ix86_comp_type_attributes
PARAMS ((tree
, tree
));
132 extern int ix86_return_pops_args
PARAMS ((tree
, tree
, int));