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).
5 This file is part of GCC.
7 GCC 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 GCC 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 GCC; see the file COPYING. If not, write to
19 the Free Software Foundation, 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
23 extern struct rtx_def
*gen_compare_reg (enum rtx_code
, rtx
, rtx
);
24 extern int call_address_operand (rtx
, enum machine_mode
);
25 extern int arith_reg_operand (rtx
, enum machine_mode
);
26 extern int symbolic_address_operand (rtx
, enum machine_mode
);
27 extern int Y_address_operand (rtx
, enum machine_mode
);
28 extern int sp_operand (rtx
, enum machine_mode
);
29 extern int sp_operand2 (rtx
, enum machine_mode
);
30 extern int nonmemory_arith_operand (rtx
, enum machine_mode
);
31 extern int dsp16xx_comparison_operator (rtx
, enum machine_mode
);
32 extern int unx_comparison_operator (rtx
, enum machine_mode
);
33 extern int signed_comparison_operator (rtx
, enum machine_mode
);
35 extern void notice_update_cc (rtx
);
36 extern void double_reg_from_memory (rtx
[]);
37 extern void double_reg_to_memory (rtx
[]);
38 extern enum rtx_code
next_cc_user_code (rtx
);
39 extern int next_cc_user_unsigned (rtx
);
40 extern struct rtx_def
*gen_tst_reg (rtx
);
41 extern const char *output_block_move (rtx
[]);
42 extern enum reg_class
preferred_reload_class (rtx
, enum reg_class
);
43 extern enum reg_class
secondary_reload_class (enum reg_class
,
44 enum machine_mode
, rtx
);
45 extern int emit_move_sequence (rtx
*, enum machine_mode
);
46 extern void print_operand (FILE *, rtx
, int);
47 extern void print_operand_address (FILE *, rtx
);
48 extern void output_dsp16xx_float_const (rtx
*);
49 extern void emit_1600_core_shift (enum rtx_code
, rtx
*, int);
50 extern int symbolic_address_p (rtx
);
51 extern int uns_comparison_operator (rtx
, enum machine_mode
);
56 extern struct rtx_def
*dsp16xx_function_arg (CUMULATIVE_ARGS
,
59 extern void dsp16xx_function_arg_advance (CUMULATIVE_ARGS
*,
62 #endif /* TREE_CODE */
64 extern void dsp16xx_invalid_register_for_compare (void);
65 extern int class_max_nregs (enum reg_class
, enum machine_mode
);
66 extern enum reg_class
limit_reload_class (enum reg_class
, enum machine_mode
);
67 extern int dsp16xx_register_move_cost (enum reg_class
, enum reg_class
);
68 extern int dsp16xx_makes_calls (void);
69 extern long compute_frame_size (int);
70 extern int dsp16xx_call_saved_register (int);
71 extern int dsp16xx_call_saved_register (int);
72 extern void init_emulation_routines (void);
73 extern int ybase_regs_ever_used (void);
74 extern void override_options (void);
75 extern int dsp16xx_starting_frame_offset (void);
76 extern int initial_frame_pointer_offset (void);
77 extern void asm_output_common (FILE *, const char *, int, int);
78 extern void asm_output_local (FILE *, const char *, int, int);
79 extern void asm_output_float (FILE *, double);
80 extern bool dsp16xx_compare_gen
;
81 extern int hard_regno_mode_ok (int, enum machine_mode
);
82 extern enum reg_class
dsp16xx_reg_class_from_letter (int);
83 extern int regno_reg_class (int);
84 extern void function_prologue (FILE *, int);
85 extern void function_epilogue (FILE *, int);
86 extern int num_1600_core_shifts (int);