annotate gcc/config/mips/mips-protos.h @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 84e7813d76e9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 /* Prototypes of target machine for GNU compiler. MIPS version.
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
2 Copyright (C) 1989-2020 Free Software Foundation, Inc.
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 Contributed by A. Lichnewsky (lich@inria.inria.fr).
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 Changed by Michael Meissner (meissner@osf.org).
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 64-bit r4000 support by Ian Lance Taylor (ian@cygnus.com) and
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 Brendan Eich (brendan@microunity.com).
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 This file is part of GCC.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 GCC is free software; you can redistribute it and/or modify
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 it under the terms of the GNU General Public License as published by
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 the Free Software Foundation; either version 3, or (at your option)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 any later version.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 GCC is distributed in the hope that it will be useful,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 GNU General Public License for more details.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 You should have received a copy of the GNU General Public License
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 along with GCC; see the file COPYING3. If not see
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 <http://www.gnu.org/licenses/>. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 #ifndef GCC_MIPS_PROTOS_H
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 #define GCC_MIPS_PROTOS_H
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
26
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 /* Describes how a symbol is used.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 SYMBOL_CONTEXT_CALL
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 The symbol is used as the target of a call instruction.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
31
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 SYMBOL_CONTEXT_LEA
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 The symbol is used in a load-address operation.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
34
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 SYMBOL_CONTEXT_MEM
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 The symbol is used as the address in a MEM. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 enum mips_symbol_context {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 SYMBOL_CONTEXT_CALL,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 SYMBOL_CONTEXT_LEA,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 SYMBOL_CONTEXT_MEM
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
41 };
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
42
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 /* Classifies a SYMBOL_REF, LABEL_REF or UNSPEC address.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
44
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 SYMBOL_ABSOLUTE
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
46 The symbol's value will be calculated using absolute relocations,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 such as %hi and %lo.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
48
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 SYMBOL_GP_RELATIVE
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 The symbol's value will be calculated by adding a 16-bit offset
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 from $gp.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
52
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 SYMBOL_PC_RELATIVE
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
54 The symbol's value will be calculated using a MIPS16 PC-relative
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 calculation.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
56
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
57 SYMBOL_GOT_PAGE_OFST
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 The symbol's value will be calculated by loading an address
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 from the GOT and then applying a 16-bit offset.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
60
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
61 SYMBOL_GOT_DISP
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
62 The symbol's value will be loaded directly from the GOT.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
63
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 SYMBOL_GOTOFF_PAGE
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
65 An UNSPEC wrapper around a SYMBOL_GOT_PAGE_OFST. It represents the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 offset from _gp of the GOT entry.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
67
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
68 SYMBOL_GOTOFF_DISP
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
69 An UNSPEC wrapper around a SYMBOL_GOT_DISP. It represents the
111
kono
parents: 67
diff changeset
70 offset from _gp of the symbol's GOT entry.
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
71
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 SYMBOL_GOTOFF_CALL
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
73 Like SYMBOL_GOTOFF_DISP, but used when calling a global function.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
74 The GOT entry is allowed to point to a stub rather than to the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 function itself.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
76
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
77 SYMBOL_GOTOFF_LOADGP
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
78 An UNSPEC wrapper around a function's address. It represents the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
79 offset of _gp from the start of the function.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
80
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
81 SYMBOL_TLS
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
82 A thread-local symbol.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
83
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
84 SYMBOL_TLSGD
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 SYMBOL_TLSLDM
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 SYMBOL_DTPREL
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
87 SYMBOL_GOTTPREL
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
88 SYMBOL_TPREL
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
89 UNSPEC wrappers around SYMBOL_TLS, corresponding to the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
90 thread-local storage relocation operators.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
91
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
92 SYMBOL_64_HIGH
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
93 For a 64-bit symbolic address X, this is the value of
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
94 (%highest(X) << 16) + %higher(X).
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
95
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
96 SYMBOL_64_MID
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
97 For a 64-bit symbolic address X, this is the value of
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
98 (%higher(X) << 16) + %hi(X).
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
99
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 SYMBOL_64_LOW
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
101 For a 64-bit symbolic address X, this is the value of
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
102 (%hi(X) << 16) + %lo(X).
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
103
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
104 SYMBOL_HALF
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
105 An UNSPEC wrapper around any kind of address. It represents the
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
106 low 16 bits of that address. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
107 enum mips_symbol_type {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
108 SYMBOL_ABSOLUTE,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
109 SYMBOL_GP_RELATIVE,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
110 SYMBOL_PC_RELATIVE,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
111 SYMBOL_GOT_PAGE_OFST,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
112 SYMBOL_GOT_DISP,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
113 SYMBOL_GOTOFF_PAGE,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
114 SYMBOL_GOTOFF_DISP,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
115 SYMBOL_GOTOFF_CALL,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
116 SYMBOL_GOTOFF_LOADGP,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
117 SYMBOL_TLS,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
118 SYMBOL_TLSGD,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
119 SYMBOL_TLSLDM,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
120 SYMBOL_DTPREL,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
121 SYMBOL_GOTTPREL,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
122 SYMBOL_TPREL,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
123 SYMBOL_64_HIGH,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
124 SYMBOL_64_MID,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
125 SYMBOL_64_LOW,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
126 SYMBOL_HALF
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
127 };
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
128 #define NUM_SYMBOL_TYPES (SYMBOL_HALF + 1)
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
129
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
130 /* Identifiers a style of $gp initialization sequence.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
131
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
132 LOADGP_NONE
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
133 No initialization sequence is needed.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
134
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
135 LOADGP_OLDABI
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
136 The o32 and o64 PIC sequence (the kind traditionally generated
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
137 by .cpload).
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
138
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
139 LOADGP_NEWABI
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
140 The n32 and n64 PIC sequence (the kind traditionally generated
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
141 by .cpsetup).
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
142
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
143 LOADGP_ABSOLUTE
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
144 The GNU absolute sequence, as generated by loadgp_absolute.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
145
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
146 LOADGP_RTP
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
147 The VxWorks RTP PIC sequence, as generated by loadgp_rtp. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
148 enum mips_loadgp_style {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
149 LOADGP_NONE,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
150 LOADGP_OLDABI,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
151 LOADGP_NEWABI,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
152 LOADGP_ABSOLUTE,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
153 LOADGP_RTP
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
154 };
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
155
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
156 struct mips16e_save_restore_info;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
157
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
158 /* Classifies a type of call.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
159
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
160 MIPS_CALL_NORMAL
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
161 A normal call or call_value pattern.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
162
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
163 MIPS_CALL_SIBCALL
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
164 A sibcall or sibcall_value pattern.
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
165
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
166 MIPS_CALL_EPILOGUE
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
167 A call inserted in the epilogue. */
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
168 enum mips_call_type {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
169 MIPS_CALL_NORMAL,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
170 MIPS_CALL_SIBCALL,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
171 MIPS_CALL_EPILOGUE
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
172 };
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
173
111
kono
parents: 67
diff changeset
174 /* Controls the conditions under which certain instructions are split.
kono
parents: 67
diff changeset
175
kono
parents: 67
diff changeset
176 SPLIT_IF_NECESSARY
kono
parents: 67
diff changeset
177 Only perform splits that are necessary for correctness
kono
parents: 67
diff changeset
178 (because no unsplit version exists).
kono
parents: 67
diff changeset
179
kono
parents: 67
diff changeset
180 SPLIT_FOR_SPEED
kono
parents: 67
diff changeset
181 Perform splits that are necessary for correctness or
kono
parents: 67
diff changeset
182 beneficial for code speed.
kono
parents: 67
diff changeset
183
kono
parents: 67
diff changeset
184 SPLIT_FOR_SIZE
kono
parents: 67
diff changeset
185 Perform splits that are necessary for correctness or
kono
parents: 67
diff changeset
186 beneficial for code size. */
kono
parents: 67
diff changeset
187 enum mips_split_type {
kono
parents: 67
diff changeset
188 SPLIT_IF_NECESSARY,
kono
parents: 67
diff changeset
189 SPLIT_FOR_SPEED,
kono
parents: 67
diff changeset
190 SPLIT_FOR_SIZE
kono
parents: 67
diff changeset
191 };
kono
parents: 67
diff changeset
192
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
193 extern bool mips_symbolic_constant_p (rtx, enum mips_symbol_context,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
194 enum mips_symbol_type *);
111
kono
parents: 67
diff changeset
195 extern int mips_regno_mode_ok_for_base_p (int, machine_mode, bool);
kono
parents: 67
diff changeset
196 extern bool mips_stack_address_p (rtx, machine_mode);
kono
parents: 67
diff changeset
197 extern int mips_address_insns (rtx, machine_mode, bool);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
198 extern int mips_const_insns (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
199 extern int mips_split_const_insns (rtx);
111
kono
parents: 67
diff changeset
200 extern int mips_split_128bit_const_insns (rtx);
kono
parents: 67
diff changeset
201 extern int mips_load_store_insns (rtx, rtx_insn *);
kono
parents: 67
diff changeset
202 extern int mips_idiv_insns (machine_mode);
kono
parents: 67
diff changeset
203 extern rtx_insn *mips_emit_move (rtx, rtx);
kono
parents: 67
diff changeset
204 #ifdef RTX_CODE
kono
parents: 67
diff changeset
205 extern void mips_emit_binary (enum rtx_code, rtx, rtx, rtx);
kono
parents: 67
diff changeset
206 #endif
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
207 extern rtx mips_pic_base_register (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
208 extern rtx mips_got_load (rtx, rtx, enum mips_symbol_type);
111
kono
parents: 67
diff changeset
209 extern bool mips_split_symbol (rtx, rtx, machine_mode, rtx *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
210 extern rtx mips_unspec_address (rtx, enum mips_symbol_type);
111
kono
parents: 67
diff changeset
211 extern rtx mips_strip_unspec_address (rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
212 extern void mips_move_integer (rtx, rtx, unsigned HOST_WIDE_INT);
111
kono
parents: 67
diff changeset
213 extern bool mips_legitimize_move (machine_mode, rtx, rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
214
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
215 extern rtx mips_subword (rtx, bool);
111
kono
parents: 67
diff changeset
216 extern bool mips_split_move_p (rtx, rtx, enum mips_split_type);
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
217 extern void mips_split_move (rtx, rtx, enum mips_split_type, rtx);
111
kono
parents: 67
diff changeset
218 extern bool mips_split_move_insn_p (rtx, rtx, rtx);
kono
parents: 67
diff changeset
219 extern void mips_split_move_insn (rtx, rtx, rtx);
kono
parents: 67
diff changeset
220 extern void mips_split_128bit_move (rtx, rtx);
kono
parents: 67
diff changeset
221 extern bool mips_split_128bit_move_p (rtx, rtx);
kono
parents: 67
diff changeset
222 extern void mips_split_msa_copy_d (rtx, rtx, rtx, rtx (*)(rtx, rtx, rtx));
kono
parents: 67
diff changeset
223 extern void mips_split_msa_insert_d (rtx, rtx, rtx, rtx);
kono
parents: 67
diff changeset
224 extern void mips_split_msa_fill_d (rtx, rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
225 extern const char *mips_output_move (rtx, rtx);
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
226 extern bool mips_cfun_has_cprestore_slot_p (void);
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
227 extern bool mips_cprestore_address_p (rtx, bool);
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
228 extern void mips_save_gp_to_cprestore_slot (rtx, rtx, rtx, rtx);
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
229 extern void mips_restore_gp_from_cprestore_slot (rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
230 #ifdef RTX_CODE
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
231 extern void mips_expand_scc (rtx *);
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
232 extern void mips_expand_conditional_branch (rtx *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
233 extern void mips_expand_vcondv2sf (rtx, rtx, rtx, enum rtx_code, rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
234 extern void mips_expand_conditional_move (rtx *);
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
235 extern void mips_expand_conditional_trap (rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
236 #endif
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
237 extern bool mips_use_pic_fn_addr_reg_p (const_rtx);
111
kono
parents: 67
diff changeset
238 extern rtx_insn *mips_expand_call (enum mips_call_type, rtx, rtx, rtx, rtx,
kono
parents: 67
diff changeset
239 bool);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
240 extern void mips_split_call (rtx, rtx);
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
241 extern bool mips_get_pic_call_symbol (rtx *, int);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
242 extern void mips_set_return_address (rtx, rtx);
111
kono
parents: 67
diff changeset
243 extern bool mips_move_by_pieces_p (unsigned HOST_WIDE_INT, unsigned int);
kono
parents: 67
diff changeset
244 extern bool mips_store_by_pieces_p (unsigned HOST_WIDE_INT, unsigned int);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
245 extern bool mips_expand_block_move (rtx, rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
246 extern void mips_expand_synci_loop (rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
247
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
248 extern void mips_init_cumulative_args (CUMULATIVE_ARGS *, tree);
111
kono
parents: 67
diff changeset
249 extern bool mips_pad_reg_upward (machine_mode, tree);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
250
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
251 extern bool mips_expand_ext_as_unaligned_load (rtx, rtx, HOST_WIDE_INT,
111
kono
parents: 67
diff changeset
252 HOST_WIDE_INT, bool);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
253 extern bool mips_expand_ins_as_unaligned_store (rtx, rtx, HOST_WIDE_INT,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
254 HOST_WIDE_INT);
111
kono
parents: 67
diff changeset
255 extern bool mips_mem_fits_mode_p (machine_mode mode, rtx x);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
256 extern HOST_WIDE_INT mips_debugger_offset (rtx, HOST_WIDE_INT);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
257
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
258 extern void mips_push_asm_switch (struct mips_asm_switch *);
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
259 extern void mips_pop_asm_switch (struct mips_asm_switch *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
260 extern void mips_output_external (FILE *, tree, const char *);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
261 extern void mips_output_ascii (FILE *, const char *, size_t);
111
kono
parents: 67
diff changeset
262 extern const char *mips_output_tls_reloc_directive (rtx *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
263 extern void mips_output_aligned_decl_common (FILE *, tree, const char *,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
264 unsigned HOST_WIDE_INT,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
265 unsigned int);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
266 extern void mips_declare_common_object (FILE *, const char *,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
267 const char *, unsigned HOST_WIDE_INT,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
268 unsigned int, bool);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
269 extern void mips_declare_object (FILE *, const char *, const char *,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
270 const char *, ...) ATTRIBUTE_PRINTF_4;
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
271 extern void mips_declare_object_name (FILE *, const char *, tree);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
272 extern void mips_finish_declare_object (FILE *, tree, int, int);
111
kono
parents: 67
diff changeset
273 extern void mips_set_text_contents_type (FILE *, const char *,
kono
parents: 67
diff changeset
274 unsigned long, bool);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
275
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
276 extern bool mips_small_data_pattern_p (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
277 extern rtx mips_rewrite_small_data (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
278 extern HOST_WIDE_INT mips_initial_elimination_offset (int, int);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
279 extern rtx mips_return_addr (int, rtx);
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
280 extern bool mips_must_initialize_gp_p (void);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
281 extern enum mips_loadgp_style mips_current_loadgp_style (void);
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
282 extern void mips_emit_save_slot_move (rtx, rtx, rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
283 extern void mips_expand_prologue (void);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
284 extern void mips_expand_before_return (void);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
285 extern void mips_expand_epilogue (bool);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
286 extern bool mips_can_use_return_insn (void);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
287
111
kono
parents: 67
diff changeset
288 extern bool mips_const_vector_same_val_p (rtx, machine_mode);
kono
parents: 67
diff changeset
289 extern bool mips_const_vector_same_bytes_p (rtx, machine_mode);
kono
parents: 67
diff changeset
290 extern bool mips_const_vector_same_int_p (rtx, machine_mode, HOST_WIDE_INT,
kono
parents: 67
diff changeset
291 HOST_WIDE_INT);
kono
parents: 67
diff changeset
292 extern bool mips_const_vector_shuffle_set_p (rtx, machine_mode);
kono
parents: 67
diff changeset
293 extern bool mips_const_vector_bitimm_set_p (rtx, machine_mode);
kono
parents: 67
diff changeset
294 extern bool mips_const_vector_bitimm_clr_p (rtx, machine_mode);
kono
parents: 67
diff changeset
295 extern rtx mips_msa_vec_parallel_const_half (machine_mode, bool);
kono
parents: 67
diff changeset
296 extern rtx mips_gen_const_int_vector (machine_mode, HOST_WIDE_INT);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
297 extern bool mips_dangerous_for_la25_p (rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
298 extern enum reg_class mips_secondary_reload_class (enum reg_class,
111
kono
parents: 67
diff changeset
299 machine_mode,
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
300 rtx, bool);
111
kono
parents: 67
diff changeset
301 extern int mips_class_max_nregs (enum reg_class, machine_mode);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
302
111
kono
parents: 67
diff changeset
303 extern machine_mode mips_hard_regno_caller_save_mode (unsigned int,
kono
parents: 67
diff changeset
304 unsigned int,
kono
parents: 67
diff changeset
305 machine_mode);
kono
parents: 67
diff changeset
306 extern int mips_adjust_insn_length (rtx_insn *, int);
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
307 extern void mips_output_load_label (rtx);
111
kono
parents: 67
diff changeset
308 extern const char *mips_output_conditional_branch (rtx_insn *, rtx *,
kono
parents: 67
diff changeset
309 const char *, const char *);
kono
parents: 67
diff changeset
310 extern const char *mips_output_order_conditional_branch (rtx_insn *, rtx *,
kono
parents: 67
diff changeset
311 bool);
kono
parents: 67
diff changeset
312 extern const char *mips_output_equal_conditional_branch (rtx_insn *, rtx *,
kono
parents: 67
diff changeset
313 bool);
kono
parents: 67
diff changeset
314 extern const char *mips_output_jump (rtx *, int, int, bool);
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
315 extern const char *mips_output_sync (void);
111
kono
parents: 67
diff changeset
316 extern const char *mips_output_sync_loop (rtx_insn *, rtx *);
kono
parents: 67
diff changeset
317 extern unsigned int mips_sync_loop_insns (rtx_insn *, rtx *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
318 extern const char *mips_output_division (const char *, rtx *);
111
kono
parents: 67
diff changeset
319 extern const char *mips_msa_output_division (const char *, rtx *);
kono
parents: 67
diff changeset
320 extern const char *mips_output_probe_stack_range (rtx, rtx);
kono
parents: 67
diff changeset
321 extern bool mips_hard_regno_rename_ok (unsigned int, unsigned int);
kono
parents: 67
diff changeset
322 extern bool mips_linked_madd_p (rtx_insn *, rtx_insn *);
kono
parents: 67
diff changeset
323 extern bool mips_store_data_bypass_p (rtx_insn *, rtx_insn *);
kono
parents: 67
diff changeset
324 extern int mips_dspalu_bypass_p (rtx, rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
325 extern rtx mips_prefetch_cookie (rtx, rtx);
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
326 extern rtx mips_loongson_ext2_prefetch_cookie (rtx, rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
327
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
328 extern const char *current_section_name (void);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
329 extern unsigned int current_section_flags (void);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
330 extern bool mips_use_ins_ext_p (rtx, HOST_WIDE_INT, HOST_WIDE_INT);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
331
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
332 extern const char *mips16e_output_save_restore (rtx, HOST_WIDE_INT);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
333 extern bool mips16e_save_restore_pattern_p (rtx, HOST_WIDE_INT,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
334 struct mips16e_save_restore_info *);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
335
111
kono
parents: 67
diff changeset
336 extern bool mask_low_and_shift_p (machine_mode, rtx, rtx, int);
kono
parents: 67
diff changeset
337 extern int mask_low_and_shift_len (machine_mode, rtx, rtx);
kono
parents: 67
diff changeset
338 extern bool and_operands_ok (machine_mode, rtx, rtx);
kono
parents: 67
diff changeset
339 extern bool mips_fmadd_bypass (rtx_insn *, rtx_insn *);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
340
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
341 union mips_gen_fn_ptrs
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
342 {
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
343 rtx (*fn_6) (rtx, rtx, rtx, rtx, rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
344 rtx (*fn_5) (rtx, rtx, rtx, rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
345 rtx (*fn_4) (rtx, rtx, rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
346 };
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
347
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
348 extern void mips_expand_atomic_qihi (union mips_gen_fn_ptrs,
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
349 rtx, rtx, rtx, rtx);
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
350
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
351 extern void mips_expand_vector_init (rtx, rtx);
111
kono
parents: 67
diff changeset
352 extern void mips_expand_vec_unpack (rtx op[2], bool, bool);
kono
parents: 67
diff changeset
353 extern void mips_expand_vec_reduc (rtx, rtx, rtx (*)(rtx, rtx, rtx));
kono
parents: 67
diff changeset
354 extern void mips_expand_vec_minmax (rtx, rtx, rtx,
kono
parents: 67
diff changeset
355 rtx (*) (rtx, rtx, rtx), bool);
kono
parents: 67
diff changeset
356
kono
parents: 67
diff changeset
357 extern int mips_ldst_scaled_shift (machine_mode);
kono
parents: 67
diff changeset
358 extern bool mips_signed_immediate_p (unsigned HOST_WIDE_INT, int, int);
kono
parents: 67
diff changeset
359 extern bool mips_unsigned_immediate_p (unsigned HOST_WIDE_INT, int, int);
kono
parents: 67
diff changeset
360 extern const char *umips_output_save_restore (bool, rtx);
kono
parents: 67
diff changeset
361 extern bool umips_save_restore_pattern_p (bool, rtx);
kono
parents: 67
diff changeset
362 extern bool umips_load_store_pair_p (bool, rtx *);
kono
parents: 67
diff changeset
363 extern void umips_output_load_store_pair (bool, rtx *);
kono
parents: 67
diff changeset
364 extern bool umips_movep_target_p (rtx, rtx);
kono
parents: 67
diff changeset
365 extern bool umips_12bit_offset_address_p (rtx, machine_mode);
kono
parents: 67
diff changeset
366 extern bool mips_9bit_offset_address_p (rtx, machine_mode);
kono
parents: 67
diff changeset
367 extern bool lwsp_swsp_address_p (rtx, machine_mode);
kono
parents: 67
diff changeset
368 extern bool m16_based_address_p (rtx, machine_mode,
kono
parents: 67
diff changeset
369 int (*)(rtx_def*, machine_mode));
kono
parents: 67
diff changeset
370 extern rtx mips_expand_thread_pointer (rtx);
kono
parents: 67
diff changeset
371 extern void mips16_expand_get_fcsr (rtx);
kono
parents: 67
diff changeset
372 extern void mips16_expand_set_fcsr (rtx);
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
373
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
374 extern bool mips_eh_uses (unsigned int);
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
375 extern bool mips_epilogue_uses (unsigned int);
111
kono
parents: 67
diff changeset
376 extern void mips_final_prescan_insn (rtx_insn *, rtx *, int);
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
377 extern int mips_trampoline_code_size (void);
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
378 extern void mips_function_profiler (FILE *);
111
kono
parents: 67
diff changeset
379 extern bool mips_load_store_bonding_p (rtx *, machine_mode, bool);
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
380
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
381 typedef rtx (*mulsidi3_gen_fn) (rtx, rtx, rtx);
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
382 #ifdef RTX_CODE
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
383 extern mulsidi3_gen_fn mips_mulsidi3_gen_fn (enum rtx_code);
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
384 #endif
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
385
111
kono
parents: 67
diff changeset
386 extern void mips_register_frame_header_opt (void);
kono
parents: 67
diff changeset
387 extern void mips_expand_vec_cond_expr (machine_mode, machine_mode, rtx *);
kono
parents: 67
diff changeset
388
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
389 /* Routines implemented in mips-d.c */
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
390 extern void mips_d_target_versions (void);
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
391
0
a06113de4d67 first commit
kent <kent@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
392 #endif /* ! GCC_MIPS_PROTOS_H */