[AArch64] Fix ICEs in aarch64_print_operand
[official-gcc.git] / gcc / config / powerpcspe / powerpcspe-cpus.def
blobcd5c70688d85b68002e8d977ba2b188ca050b38e
1 /* IBM RS/6000 CPU names..
2 Copyright (C) 1991-2017 Free Software Foundation, Inc.
3 Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
5 This file is part of GCC.
7 GCC is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published
9 by the Free Software Foundation; either version 3, or (at your
10 option) any later version.
12 GCC is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License
18 along with GCC; see the file COPYING3. If not see
19 <http://www.gnu.org/licenses/>. */
21 /* ISA masks. */
22 #ifndef ISA_2_1_MASKS
23 #define ISA_2_1_MASKS OPTION_MASK_MFCRF
24 #define ISA_2_2_MASKS (ISA_2_1_MASKS | OPTION_MASK_POPCNTB)
25 #define ISA_2_4_MASKS (ISA_2_2_MASKS | OPTION_MASK_FPRND)
27 /* For ISA 2.05, do not add MFPGPR, since it isn't in ISA 2.06, and don't add
28 ALTIVEC, since in general it isn't a win on power6. In ISA 2.04, fsel,
29 fre, fsqrt, etc. were no longer documented as optional. Group masks by
30 server and embedded. */
31 #define ISA_2_5_MASKS_EMBEDDED (ISA_2_4_MASKS \
32 | OPTION_MASK_CMPB \
33 | OPTION_MASK_RECIP_PRECISION \
34 | OPTION_MASK_PPC_GFXOPT \
35 | OPTION_MASK_PPC_GPOPT)
37 #define ISA_2_5_MASKS_SERVER (ISA_2_5_MASKS_EMBEDDED | OPTION_MASK_DFP)
39 /* For ISA 2.06, don't add ISEL, since in general it isn't a win, but
40 altivec is a win so enable it. */
41 /* OPTION_MASK_VSX_TIMODE should be set, but disable it for now until
42 PR 58587 is fixed. */
43 #define ISA_2_6_MASKS_EMBEDDED (ISA_2_5_MASKS_EMBEDDED | OPTION_MASK_POPCNTD)
44 #define ISA_2_6_MASKS_SERVER (ISA_2_5_MASKS_SERVER \
45 | OPTION_MASK_POPCNTD \
46 | OPTION_MASK_ALTIVEC \
47 | OPTION_MASK_VSX \
48 | OPTION_MASK_UPPER_REGS_DI \
49 | OPTION_MASK_UPPER_REGS_DF)
51 /* For now, don't provide an embedded version of ISA 2.07. */
52 #define ISA_2_7_MASKS_SERVER (ISA_2_6_MASKS_SERVER \
53 | OPTION_MASK_P8_FUSION \
54 | OPTION_MASK_P8_VECTOR \
55 | OPTION_MASK_CRYPTO \
56 | OPTION_MASK_DIRECT_MOVE \
57 | OPTION_MASK_EFFICIENT_UNALIGNED_VSX \
58 | OPTION_MASK_HTM \
59 | OPTION_MASK_QUAD_MEMORY \
60 | OPTION_MASK_QUAD_MEMORY_ATOMIC \
61 | OPTION_MASK_UPPER_REGS_SF \
62 | OPTION_MASK_VSX_SMALL_INTEGER)
64 /* Add ISEL back into ISA 3.0, since it is supposed to be a win. Do not add
65 FLOAT128_HW here until we are ready to make -mfloat128 on by default. */
66 #define ISA_3_0_MASKS_SERVER (ISA_2_7_MASKS_SERVER \
67 | OPTION_MASK_ISEL \
68 | OPTION_MASK_MODULO \
69 | OPTION_MASK_P9_FUSION \
70 | OPTION_MASK_P9_DFORM_SCALAR \
71 | OPTION_MASK_P9_DFORM_VECTOR \
72 | OPTION_MASK_P9_MINMAX \
73 | OPTION_MASK_P9_MISC \
74 | OPTION_MASK_P9_VECTOR)
76 /* Support for the IEEE 128-bit floating point hardware requires a lot of the
77 VSX instructions that are part of ISA 3.0. */
78 #define ISA_3_0_MASKS_IEEE (OPTION_MASK_VSX \
79 | OPTION_MASK_P8_VECTOR \
80 | OPTION_MASK_P9_VECTOR \
81 | OPTION_MASK_DIRECT_MOVE \
82 | OPTION_MASK_UPPER_REGS_DI \
83 | OPTION_MASK_UPPER_REGS_DF \
84 | OPTION_MASK_UPPER_REGS_SF \
85 | OPTION_MASK_VSX_SMALL_INTEGER)
87 /* Flags that need to be turned off if -mno-power9-vector. */
88 #define OTHER_P9_VECTOR_MASKS (OPTION_MASK_FLOAT128_HW \
89 | OPTION_MASK_P9_DFORM_SCALAR \
90 | OPTION_MASK_P9_DFORM_VECTOR \
91 | OPTION_MASK_P9_MINMAX)
93 /* Flags that need to be turned off if -mno-power8-vector. */
94 #define OTHER_P8_VECTOR_MASKS (OTHER_P9_VECTOR_MASKS \
95 | OPTION_MASK_P9_VECTOR \
96 | OPTION_MASK_DIRECT_MOVE \
97 | OPTION_MASK_CRYPTO \
98 | OPTION_MASK_UPPER_REGS_SF) \
100 /* Flags that need to be turned off if -mno-vsx. */
101 #define OTHER_VSX_VECTOR_MASKS (OTHER_P8_VECTOR_MASKS \
102 | OPTION_MASK_EFFICIENT_UNALIGNED_VSX \
103 | OPTION_MASK_FLOAT128_KEYWORD \
104 | OPTION_MASK_FLOAT128_TYPE \
105 | OPTION_MASK_P8_VECTOR \
106 | OPTION_MASK_UPPER_REGS_DI \
107 | OPTION_MASK_UPPER_REGS_DF \
108 | OPTION_MASK_VSX_SMALL_INTEGER \
109 | OPTION_MASK_VSX_TIMODE)
111 #define POWERPC_7400_MASK (OPTION_MASK_PPC_GFXOPT | OPTION_MASK_ALTIVEC)
113 /* Deal with ports that do not have -mstrict-align. */
114 #ifdef OPTION_MASK_STRICT_ALIGN
115 #define OPTION_MASK_STRICT_ALIGN_OPTIONAL OPTION_MASK_STRICT_ALIGN
116 #else
117 #define OPTION_MASK_STRICT_ALIGN 0
118 #define OPTION_MASK_STRICT_ALIGN_OPTIONAL 0
119 #ifndef MASK_STRICT_ALIGN
120 #define MASK_STRICT_ALIGN 0
121 #endif
122 #endif
124 /* Mask of all options to set the default isa flags based on -mcpu=<xxx>. */
125 #define POWERPC_MASKS (OPTION_MASK_ALTIVEC \
126 | OPTION_MASK_CMPB \
127 | OPTION_MASK_CRYPTO \
128 | OPTION_MASK_DFP \
129 | OPTION_MASK_DIRECT_MOVE \
130 | OPTION_MASK_DLMZB \
131 | OPTION_MASK_EFFICIENT_UNALIGNED_VSX \
132 | OPTION_MASK_FLOAT128_HW \
133 | OPTION_MASK_FLOAT128_KEYWORD \
134 | OPTION_MASK_FLOAT128_TYPE \
135 | OPTION_MASK_FPRND \
136 | OPTION_MASK_HTM \
137 | OPTION_MASK_ISEL \
138 | OPTION_MASK_LRA \
139 | OPTION_MASK_MFCRF \
140 | OPTION_MASK_MFPGPR \
141 | OPTION_MASK_MODULO \
142 | OPTION_MASK_MULHW \
143 | OPTION_MASK_NO_UPDATE \
144 | OPTION_MASK_P8_FUSION \
145 | OPTION_MASK_P8_VECTOR \
146 | OPTION_MASK_P9_DFORM_SCALAR \
147 | OPTION_MASK_P9_DFORM_VECTOR \
148 | OPTION_MASK_P9_FUSION \
149 | OPTION_MASK_P9_MINMAX \
150 | OPTION_MASK_P9_MISC \
151 | OPTION_MASK_P9_VECTOR \
152 | OPTION_MASK_POPCNTB \
153 | OPTION_MASK_POPCNTD \
154 | OPTION_MASK_POWERPC64 \
155 | OPTION_MASK_PPC_GFXOPT \
156 | OPTION_MASK_PPC_GPOPT \
157 | OPTION_MASK_QUAD_MEMORY \
158 | OPTION_MASK_QUAD_MEMORY_ATOMIC \
159 | OPTION_MASK_RECIP_PRECISION \
160 | OPTION_MASK_SOFT_FLOAT \
161 | OPTION_MASK_STRICT_ALIGN_OPTIONAL \
162 | OPTION_MASK_TOC_FUSION \
163 | OPTION_MASK_UPPER_REGS_DI \
164 | OPTION_MASK_UPPER_REGS_DF \
165 | OPTION_MASK_UPPER_REGS_SF \
166 | OPTION_MASK_VSX \
167 | OPTION_MASK_VSX_SMALL_INTEGER \
168 | OPTION_MASK_VSX_TIMODE)
170 #endif
172 /* This table occasionally claims that a processor does not support a
173 particular feature even though it does, but the feature is slower than the
174 alternative. Thus, it shouldn't be relied on as a complete description of
175 the processor's support.
177 Please keep this list in order, and don't forget to update the documentation
178 in invoke.texi when adding a new processor or flag.
180 Before including this file, define a macro:
182 RS6000_CPU (NAME, CPU, FLAGS)
184 where the arguments are the fields of struct rs6000_ptt. */
186 RS6000_CPU ("401", PROCESSOR_PPC403, MASK_SOFT_FLOAT)
187 RS6000_CPU ("403", PROCESSOR_PPC403, MASK_SOFT_FLOAT | MASK_STRICT_ALIGN)
188 RS6000_CPU ("405", PROCESSOR_PPC405, MASK_SOFT_FLOAT | MASK_MULHW | MASK_DLMZB)
189 RS6000_CPU ("405fp", PROCESSOR_PPC405, MASK_MULHW | MASK_DLMZB)
190 RS6000_CPU ("440", PROCESSOR_PPC440, MASK_SOFT_FLOAT | MASK_MULHW | MASK_DLMZB)
191 RS6000_CPU ("440fp", PROCESSOR_PPC440, MASK_MULHW | MASK_DLMZB)
192 RS6000_CPU ("464", PROCESSOR_PPC440, MASK_SOFT_FLOAT | MASK_MULHW | MASK_DLMZB)
193 RS6000_CPU ("464fp", PROCESSOR_PPC440, MASK_MULHW | MASK_DLMZB)
194 RS6000_CPU ("476", PROCESSOR_PPC476,
195 MASK_SOFT_FLOAT | MASK_PPC_GFXOPT | MASK_MFCRF | MASK_POPCNTB
196 | MASK_FPRND | MASK_CMPB | MASK_MULHW | MASK_DLMZB)
197 RS6000_CPU ("476fp", PROCESSOR_PPC476,
198 MASK_PPC_GFXOPT | MASK_MFCRF | MASK_POPCNTB | MASK_FPRND
199 | MASK_CMPB | MASK_MULHW | MASK_DLMZB)
200 RS6000_CPU ("505", PROCESSOR_MPCCORE, 0)
201 RS6000_CPU ("601", PROCESSOR_PPC601, MASK_MULTIPLE | MASK_STRING)
202 RS6000_CPU ("602", PROCESSOR_PPC603, MASK_PPC_GFXOPT)
203 RS6000_CPU ("603", PROCESSOR_PPC603, MASK_PPC_GFXOPT)
204 RS6000_CPU ("603e", PROCESSOR_PPC603, MASK_PPC_GFXOPT)
205 RS6000_CPU ("604", PROCESSOR_PPC604, MASK_PPC_GFXOPT)
206 RS6000_CPU ("604e", PROCESSOR_PPC604e, MASK_PPC_GFXOPT)
207 RS6000_CPU ("620", PROCESSOR_PPC620, MASK_PPC_GFXOPT | MASK_POWERPC64)
208 RS6000_CPU ("630", PROCESSOR_PPC630, MASK_PPC_GFXOPT | MASK_POWERPC64)
209 RS6000_CPU ("740", PROCESSOR_PPC750, MASK_PPC_GFXOPT)
210 RS6000_CPU ("7400", PROCESSOR_PPC7400, POWERPC_7400_MASK)
211 RS6000_CPU ("7450", PROCESSOR_PPC7450, POWERPC_7400_MASK)
212 RS6000_CPU ("750", PROCESSOR_PPC750, MASK_PPC_GFXOPT)
213 RS6000_CPU ("801", PROCESSOR_MPCCORE, MASK_SOFT_FLOAT)
214 RS6000_CPU ("821", PROCESSOR_MPCCORE, MASK_SOFT_FLOAT)
215 RS6000_CPU ("823", PROCESSOR_MPCCORE, MASK_SOFT_FLOAT)
216 RS6000_CPU ("8540", PROCESSOR_PPC8540, MASK_STRICT_ALIGN | MASK_ISEL)
217 RS6000_CPU ("8548", PROCESSOR_PPC8548, MASK_STRICT_ALIGN | MASK_ISEL)
218 RS6000_CPU ("a2", PROCESSOR_PPCA2,
219 MASK_PPC_GFXOPT | MASK_POWERPC64 | MASK_POPCNTB | MASK_CMPB
220 | MASK_NO_UPDATE)
221 RS6000_CPU ("e300c2", PROCESSOR_PPCE300C2, MASK_SOFT_FLOAT)
222 RS6000_CPU ("e300c3", PROCESSOR_PPCE300C3, 0)
223 RS6000_CPU ("e500mc", PROCESSOR_PPCE500MC, MASK_PPC_GFXOPT | MASK_ISEL)
224 RS6000_CPU ("e500mc64", PROCESSOR_PPCE500MC64,
225 MASK_POWERPC64 | MASK_PPC_GFXOPT | MASK_ISEL)
226 RS6000_CPU ("e5500", PROCESSOR_PPCE5500,
227 MASK_POWERPC64 | MASK_PPC_GFXOPT | MASK_ISEL)
228 RS6000_CPU ("e6500", PROCESSOR_PPCE6500, POWERPC_7400_MASK | MASK_POWERPC64
229 | MASK_MFCRF | MASK_ISEL)
230 RS6000_CPU ("860", PROCESSOR_MPCCORE, MASK_SOFT_FLOAT)
231 RS6000_CPU ("970", PROCESSOR_POWER4,
232 POWERPC_7400_MASK | MASK_PPC_GPOPT | MASK_MFCRF | MASK_POWERPC64)
233 RS6000_CPU ("cell", PROCESSOR_CELL,
234 POWERPC_7400_MASK | MASK_PPC_GPOPT | MASK_MFCRF | MASK_POWERPC64)
235 RS6000_CPU ("ec603e", PROCESSOR_PPC603, MASK_SOFT_FLOAT)
236 RS6000_CPU ("G3", PROCESSOR_PPC750, MASK_PPC_GFXOPT)
237 RS6000_CPU ("G4", PROCESSOR_PPC7450, POWERPC_7400_MASK)
238 RS6000_CPU ("G5", PROCESSOR_POWER4,
239 POWERPC_7400_MASK | MASK_PPC_GPOPT | MASK_MFCRF | MASK_POWERPC64)
240 RS6000_CPU ("titan", PROCESSOR_TITAN, MASK_MULHW | MASK_DLMZB)
241 RS6000_CPU ("power3", PROCESSOR_PPC630, MASK_PPC_GFXOPT | MASK_POWERPC64)
242 RS6000_CPU ("power4", PROCESSOR_POWER4, MASK_POWERPC64 | MASK_PPC_GPOPT
243 | MASK_PPC_GFXOPT | MASK_MFCRF)
244 RS6000_CPU ("power5", PROCESSOR_POWER5, MASK_POWERPC64 | MASK_PPC_GPOPT
245 | MASK_PPC_GFXOPT | MASK_MFCRF | MASK_POPCNTB)
246 RS6000_CPU ("power5+", PROCESSOR_POWER5, MASK_POWERPC64 | MASK_PPC_GPOPT
247 | MASK_PPC_GFXOPT | MASK_MFCRF | MASK_POPCNTB | MASK_FPRND)
248 RS6000_CPU ("power6", PROCESSOR_POWER6, MASK_POWERPC64 | MASK_PPC_GPOPT
249 | MASK_PPC_GFXOPT | MASK_MFCRF | MASK_POPCNTB | MASK_FPRND
250 | MASK_CMPB | MASK_DFP | MASK_RECIP_PRECISION)
251 RS6000_CPU ("power6x", PROCESSOR_POWER6, MASK_POWERPC64 | MASK_PPC_GPOPT
252 | MASK_PPC_GFXOPT | MASK_MFCRF | MASK_POPCNTB | MASK_FPRND
253 | MASK_CMPB | MASK_DFP | MASK_MFPGPR | MASK_RECIP_PRECISION)
254 RS6000_CPU ("power7", PROCESSOR_POWER7, /* Don't add MASK_ISEL by default */
255 POWERPC_7400_MASK | MASK_POWERPC64 | MASK_PPC_GPOPT | MASK_MFCRF
256 | MASK_POPCNTB | MASK_FPRND | MASK_CMPB | MASK_DFP | MASK_POPCNTD
257 | MASK_VSX | MASK_RECIP_PRECISION | OPTION_MASK_UPPER_REGS_DF
258 | OPTION_MASK_UPPER_REGS_DI)
259 RS6000_CPU ("power8", PROCESSOR_POWER8, MASK_POWERPC64 | ISA_2_7_MASKS_SERVER)
260 RS6000_CPU ("power9", PROCESSOR_POWER9, MASK_POWERPC64 | ISA_3_0_MASKS_SERVER)
261 RS6000_CPU ("powerpc", PROCESSOR_POWERPC, 0)
262 RS6000_CPU ("powerpc64", PROCESSOR_POWERPC64, MASK_PPC_GFXOPT | MASK_POWERPC64)
263 RS6000_CPU ("powerpc64le", PROCESSOR_POWER8, MASK_POWERPC64 | ISA_2_7_MASKS_SERVER)
264 RS6000_CPU ("rs64", PROCESSOR_RS64A, MASK_PPC_GFXOPT | MASK_POWERPC64)