]>
Commit | Line | Data |
---|---|---|
c65ebc55 | 1 | /* Definitions of target machine for GNU compiler for IA-64. |
e65271be | 2 | Copyright (C) 1999, 2000 Free Software Foundation, Inc. |
c65ebc55 JW |
3 | |
4 | This file is part of GNU CC. | |
5 | ||
6 | GNU CC 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 2, or (at your option) | |
9 | any later version. | |
10 | ||
11 | GNU CC 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. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
17 | along with GNU CC; see the file COPYING. If not, write to | |
18 | the Free Software Foundation, 59 Temple Place - Suite 330, | |
ed168e45 | 19 | Boston, MA 02111-1307, USA. */ |
c65ebc55 JW |
20 | |
21 | /* Variables defined in ia64.c. */ | |
22 | ||
23 | #ifdef RTX_CODE | |
e2500fed GK |
24 | extern GTY(()) rtx ia64_compare_op0; |
25 | extern GTY(()) rtx ia64_compare_op1; | |
c65ebc55 JW |
26 | #endif |
27 | ||
28 | /* Functions defined in ia64.c */ | |
29 | ||
30 | #ifdef RTX_CODE | |
31 | extern int call_operand PARAMS((rtx, enum machine_mode)); | |
32 | extern int sdata_symbolic_operand PARAMS((rtx, enum machine_mode)); | |
ec039e3c | 33 | extern int got_symbolic_operand PARAMS((rtx, enum machine_mode)); |
c65ebc55 | 34 | extern int symbolic_operand PARAMS((rtx, enum machine_mode)); |
7b6e506e | 35 | extern int tls_symbolic_operand PARAMS((rtx, enum machine_mode)); |
c65ebc55 JW |
36 | extern int function_operand PARAMS((rtx, enum machine_mode)); |
37 | extern int setjmp_operand PARAMS((rtx, enum machine_mode)); | |
38 | extern int move_operand PARAMS((rtx, enum machine_mode)); | |
0551c32d RH |
39 | extern int gr_register_operand PARAMS((rtx, enum machine_mode)); |
40 | extern int fr_register_operand PARAMS((rtx, enum machine_mode)); | |
41 | extern int grfr_register_operand PARAMS((rtx, enum machine_mode)); | |
42 | extern int gr_nonimmediate_operand PARAMS((rtx, enum machine_mode)); | |
655f2eb9 | 43 | extern int fr_nonimmediate_operand PARAMS((rtx, enum machine_mode)); |
0551c32d RH |
44 | extern int grfr_nonimmediate_operand PARAMS((rtx, enum machine_mode)); |
45 | extern int gr_reg_or_0_operand PARAMS((rtx, enum machine_mode)); | |
46 | extern int gr_reg_or_5bit_operand PARAMS((rtx, enum machine_mode)); | |
47 | extern int gr_reg_or_6bit_operand PARAMS((rtx, enum machine_mode)); | |
48 | extern int gr_reg_or_8bit_operand PARAMS((rtx, enum machine_mode)); | |
49 | extern int grfr_reg_or_8bit_operand PARAMS((rtx, enum machine_mode)); | |
50 | extern int gr_reg_or_8bit_adjusted_operand PARAMS((rtx, enum machine_mode)); | |
51 | extern int gr_reg_or_8bit_and_adjusted_operand PARAMS((rtx, enum machine_mode)); | |
52 | extern int gr_reg_or_14bit_operand PARAMS((rtx, enum machine_mode)); | |
53 | extern int gr_reg_or_22bit_operand PARAMS((rtx, enum machine_mode)); | |
c65ebc55 JW |
54 | extern int shift_count_operand PARAMS((rtx, enum machine_mode)); |
55 | extern int shift_32bit_count_operand PARAMS((rtx, enum machine_mode)); | |
56 | extern int shladd_operand PARAMS((rtx, enum machine_mode)); | |
809d4ef1 | 57 | extern int fetchadd_operand PARAMS((rtx, enum machine_mode)); |
0551c32d | 58 | extern int fr_reg_or_fp01_operand PARAMS((rtx, enum machine_mode)); |
c65ebc55 JW |
59 | extern int normal_comparison_operator PARAMS((rtx, enum machine_mode)); |
60 | extern int adjusted_comparison_operator PARAMS((rtx, enum machine_mode)); | |
f2f90c63 | 61 | extern int signed_inequality_operator PARAMS((rtx, enum machine_mode)); |
4b983fdc | 62 | extern int destination_operand PARAMS((rtx, enum machine_mode)); |
0551c32d | 63 | extern int not_postinc_memory_operand PARAMS((rtx, enum machine_mode)); |
111afdb3 | 64 | extern int predicate_operator PARAMS((rtx, enum machine_mode)); |
5527bf14 | 65 | extern int ar_lc_reg_operand PARAMS((rtx, enum machine_mode)); |
97e242b0 | 66 | extern int ar_ccv_reg_operand PARAMS((rtx, enum machine_mode)); |
6ca3c22f | 67 | extern int ar_pfs_reg_operand PARAMS((rtx, enum machine_mode)); |
3f622353 RH |
68 | extern int general_tfmode_operand PARAMS((rtx, enum machine_mode)); |
69 | extern int destination_tfmode_operand PARAMS((rtx, enum machine_mode)); | |
70 | extern int tfreg_or_fp01_operand PARAMS((rtx, enum machine_mode)); | |
e206a74f | 71 | extern int basereg_operand PARAMS((rtx, enum machine_mode)); |
5527bf14 | 72 | |
7b6e506e | 73 | extern rtx ia64_expand_move PARAMS ((rtx, rtx)); |
557b9df5 | 74 | extern int ia64_move_ok PARAMS((rtx, rtx)); |
041f25e6 | 75 | extern int ia64_depz_field_mask PARAMS((rtx, rtx)); |
97e242b0 | 76 | extern rtx ia64_gp_save_reg PARAMS((int)); |
3f622353 RH |
77 | extern rtx ia64_split_timode PARAMS((rtx[], rtx, rtx)); |
78 | extern rtx spill_tfmode_operand PARAMS((rtx, int)); | |
f2f90c63 | 79 | extern rtx ia64_expand_compare PARAMS((enum rtx_code, enum machine_mode)); |
2ed4af6f | 80 | extern void ia64_expand_call PARAMS((rtx, rtx, rtx, int)); |
809d4ef1 | 81 | |
041f25e6 RH |
82 | extern HOST_WIDE_INT ia64_initial_elimination_offset PARAMS((int, int)); |
83 | extern void ia64_expand_prologue PARAMS((void)); | |
2ed4af6f | 84 | extern void ia64_expand_epilogue PARAMS((int)); |
041f25e6 RH |
85 | |
86 | extern int ia64_direct_return PARAMS((void)); | |
b5d37c6f | 87 | extern void ia64_expand_load_address PARAMS((rtx, rtx, rtx)); |
10c9f189 | 88 | extern int ia64_hard_regno_rename_ok PARAMS((int, int)); |
809d4ef1 | 89 | |
97e242b0 | 90 | extern void ia64_initialize_trampoline PARAMS((rtx, rtx, rtx)); |
809d4ef1 RH |
91 | extern void ia64_print_operand_address PARAMS((FILE *, rtx)); |
92 | extern void ia64_print_operand PARAMS((FILE *, rtx, int)); | |
93 | extern enum reg_class ia64_secondary_reload_class PARAMS((enum reg_class, | |
94 | enum machine_mode, | |
95 | rtx)); | |
96 | extern void ia64_reorg PARAMS((rtx)); | |
3b572406 | 97 | extern void process_for_unwind_directive PARAMS ((FILE *, rtx)); |
2130b7fb | 98 | extern const char *get_bundle_name PARAMS ((int)); |
809d4ef1 RH |
99 | #endif /* RTX_CODE */ |
100 | ||
c65ebc55 | 101 | #ifdef TREE_CODE |
c65ebc55 JW |
102 | #ifdef RTX_CODE |
103 | extern rtx ia64_function_arg PARAMS((CUMULATIVE_ARGS *, enum machine_mode, | |
104 | tree, int, int)); | |
809d4ef1 RH |
105 | extern rtx ia64_expand_builtin PARAMS((tree, rtx, rtx, |
106 | enum machine_mode, int)); | |
107 | extern void ia64_va_start PARAMS((int, tree, rtx)); | |
108 | extern rtx ia64_va_arg PARAMS((tree, tree)); | |
109 | extern rtx ia64_function_value PARAMS((tree, tree)); | |
110 | #endif /* RTX_CODE */ | |
111 | ||
112 | extern void ia64_setup_incoming_varargs PARAMS((CUMULATIVE_ARGS, int, tree, | |
113 | int *, int)); | |
c65ebc55 JW |
114 | extern int ia64_function_arg_partial_nregs PARAMS((CUMULATIVE_ARGS *, |
115 | enum machine_mode, | |
116 | tree, int)); | |
117 | extern void ia64_function_arg_advance PARAMS((CUMULATIVE_ARGS *, | |
118 | enum machine_mode, | |
119 | tree, int)); | |
51dcde6f RH |
120 | extern int ia64_function_arg_pass_by_reference PARAMS((CUMULATIVE_ARGS *, |
121 | enum machine_mode, | |
122 | tree, int)); | |
c65ebc55 | 123 | extern int ia64_return_in_memory PARAMS((tree)); |
809d4ef1 | 124 | extern void ia64_asm_output_external PARAMS((FILE *, tree, const char *)); |
809d4ef1 RH |
125 | #endif /* TREE_CODE */ |
126 | ||
7109d286 RH |
127 | extern int ia64_register_move_cost PARAMS((enum machine_mode, enum reg_class, |
128 | enum reg_class)); | |
809d4ef1 | 129 | extern int ia64_epilogue_uses PARAMS((int)); |
15b5aef3 | 130 | extern int ia64_eh_uses PARAMS((int)); |
ca3920ad | 131 | extern void emit_safe_across_calls PARAMS((FILE *)); |
809d4ef1 RH |
132 | extern void ia64_init_builtins PARAMS((void)); |
133 | extern void ia64_override_options PARAMS((void)); | |
97e242b0 | 134 | extern int ia64_dbx_register_number PARAMS((int)); |
0024a804 JW |
135 | |
136 | #ifdef SDATA_SECTION_ASM_OP | |
137 | extern void sdata_section PARAMS ((void)); | |
138 | #endif | |
139 | ||
140 | #ifdef SBSS_SECTION_ASM_OP | |
141 | extern void sbss_section PARAMS ((void)); | |
142 | #endif | |
0d7839da SE |
143 | |
144 | #ifdef ARGS_SIZE_RTX | |
145 | /* expr.h defines ARGS_SIZE_RTX and `enum direction'. */ | |
146 | extern enum direction ia64_hpux_function_arg_padding PARAMS ((enum machine_mode, tree)); | |
147 | #endif /* ARGS_SIZE_RTX */ |