]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/mips/mips-cpus.def
[AArch64] PR target/63521 Define REG_ALLOC_ORDER
[thirdparty/gcc.git] / gcc / config / mips / mips-cpus.def
CommitLineData
d371df6f 1/* MIPS CPU names.
5624e564 2 Copyright (C) 1989-2015 Free Software Foundation, Inc.
d371df6f
JM
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 3, or (at your option)
9any later version.
10
11GCC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
19
20/* A table describing all the processors GCC knows about. The first
21 mention of an ISA level is taken as the canonical name for that
22 ISA.
23
24 To ease comparison, please keep this table in the same order
25 as GAS's mips_cpu_info_table. Please also make sure that
26 MIPS_ISA_LEVEL_SPEC and MIPS_ARCH_FLOAT_SPEC handle all -march
27 options correctly.
28
29 Before including this file, define a macro:
30
31 MIPS_CPU (NAME, CPU, ISA, FLAGS)
32
33 where the arguments are the fields of struct mips_cpu_info. */
34
35/* Entries for generic ISAs. */
36MIPS_CPU ("mips1", PROCESSOR_R3000, 1, 0)
37MIPS_CPU ("mips2", PROCESSOR_R6000, 2, 0)
38MIPS_CPU ("mips3", PROCESSOR_R4000, 3, 0)
2f79da78 39MIPS_CPU ("mips4", PROCESSOR_R10000, 4, 0)
d371df6f
JM
40/* Prefer not to use branch-likely instructions for generic MIPS32rX
41 and MIPS64rX code. The instructions were officially deprecated
42 in revisions 2 and earlier, but revision 3 is likely to downgrade
43 that to a recommendation to avoid the instructions in code that
44 isn't tuned to a specific processor. */
45MIPS_CPU ("mips32", PROCESSOR_4KC, 32, PTF_AVOID_BRANCHLIKELY)
7df36117 46MIPS_CPU ("mips32r2", PROCESSOR_74KF2_1, 33, PTF_AVOID_BRANCHLIKELY)
2b3bd040
AB
47/* mips32r3 is micromips hense why it uses the M4K processor.
48 mips32r5 should use the p5600 processor, but there is no definition
49 for this yet, so in the short term we will use the same processor entry
50 as mips32r2. */
51MIPS_CPU ("mips32r3", PROCESSOR_M4K, 34, PTF_AVOID_BRANCHLIKELY)
aaaa9efc 52MIPS_CPU ("mips32r5", PROCESSOR_P5600, 36, PTF_AVOID_BRANCHLIKELY)
82f84ecb 53MIPS_CPU ("mips32r6", PROCESSOR_W32, 37, PTF_AVOID_BRANCHLIKELY)
d371df6f 54MIPS_CPU ("mips64", PROCESSOR_5KC, 64, PTF_AVOID_BRANCHLIKELY)
2b3bd040 55/* ??? For now just tune the generic MIPS64r2 and above for 5KC as well. */
d371df6f 56MIPS_CPU ("mips64r2", PROCESSOR_5KC, 65, PTF_AVOID_BRANCHLIKELY)
2b3bd040
AB
57MIPS_CPU ("mips64r3", PROCESSOR_5KC, 66, PTF_AVOID_BRANCHLIKELY)
58MIPS_CPU ("mips64r5", PROCESSOR_5KC, 68, PTF_AVOID_BRANCHLIKELY)
82f84ecb 59MIPS_CPU ("mips64r6", PROCESSOR_W64, 69, PTF_AVOID_BRANCHLIKELY)
d371df6f
JM
60
61/* MIPS I processors. */
62MIPS_CPU ("r3000", PROCESSOR_R3000, 1, 0)
63MIPS_CPU ("r2000", PROCESSOR_R3000, 1, 0)
64MIPS_CPU ("r3900", PROCESSOR_R3900, 1, 0)
65
66/* MIPS II processors. */
67MIPS_CPU ("r6000", PROCESSOR_R6000, 2, 0)
68
69/* MIPS III processors. */
70MIPS_CPU ("r4000", PROCESSOR_R4000, 3, 0)
71MIPS_CPU ("vr4100", PROCESSOR_R4100, 3, 0)
72MIPS_CPU ("vr4111", PROCESSOR_R4111, 3, 0)
73MIPS_CPU ("vr4120", PROCESSOR_R4120, 3, 0)
74MIPS_CPU ("vr4130", PROCESSOR_R4130, 3, 0)
75MIPS_CPU ("vr4300", PROCESSOR_R4300, 3, 0)
76MIPS_CPU ("r4400", PROCESSOR_R4000, 3, 0)
77MIPS_CPU ("r4600", PROCESSOR_R4600, 3, 0)
78MIPS_CPU ("orion", PROCESSOR_R4600, 3, 0)
79MIPS_CPU ("r4650", PROCESSOR_R4650, 3, 0)
d58e7d69 80MIPS_CPU ("r4700", PROCESSOR_R4700, 3, 0)
107eea2c 81MIPS_CPU ("r5900", PROCESSOR_R5900, 3, 0)
d371df6f
JM
82/* ST Loongson 2E/2F processors. */
83MIPS_CPU ("loongson2e", PROCESSOR_LOONGSON_2E, 3, PTF_AVOID_BRANCHLIKELY)
84MIPS_CPU ("loongson2f", PROCESSOR_LOONGSON_2F, 3, PTF_AVOID_BRANCHLIKELY)
85
86/* MIPS IV processors. */
87MIPS_CPU ("r8000", PROCESSOR_R8000, 4, 0)
88MIPS_CPU ("r10000", PROCESSOR_R10000, 4, 0)
89MIPS_CPU ("r12000", PROCESSOR_R10000, 4, 0)
90MIPS_CPU ("r14000", PROCESSOR_R10000, 4, 0)
91MIPS_CPU ("r16000", PROCESSOR_R10000, 4, 0)
92MIPS_CPU ("vr5000", PROCESSOR_R5000, 4, 0)
93MIPS_CPU ("vr5400", PROCESSOR_R5400, 4, 0)
94MIPS_CPU ("vr5500", PROCESSOR_R5500, 4, PTF_AVOID_BRANCHLIKELY)
95MIPS_CPU ("rm7000", PROCESSOR_R7000, 4, 0)
96MIPS_CPU ("rm9000", PROCESSOR_R9000, 4, 0)
97
98/* MIPS32 processors. */
99MIPS_CPU ("4kc", PROCESSOR_4KC, 32, 0)
100MIPS_CPU ("4km", PROCESSOR_4KC, 32, 0)
101MIPS_CPU ("4kp", PROCESSOR_4KP, 32, 0)
102MIPS_CPU ("4ksc", PROCESSOR_4KC, 32, 0)
103
104/* MIPS32 Release 2 processors. */
105MIPS_CPU ("m4k", PROCESSOR_M4K, 33, 0)
22c4c869
CM
106MIPS_CPU ("m14kc", PROCESSOR_M4K, 33, 0)
107MIPS_CPU ("m14k", PROCESSOR_M4K, 33, 0)
8e932114
CM
108MIPS_CPU ("m14ke", PROCESSOR_M4K, 33, 0)
109MIPS_CPU ("m14kec", PROCESSOR_M4K, 33, 0)
d371df6f
JM
110MIPS_CPU ("4kec", PROCESSOR_4KC, 33, 0)
111MIPS_CPU ("4kem", PROCESSOR_4KC, 33, 0)
112MIPS_CPU ("4kep", PROCESSOR_4KP, 33, 0)
113MIPS_CPU ("4ksd", PROCESSOR_4KC, 33, 0)
114
115MIPS_CPU ("24kc", PROCESSOR_24KC, 33, 0)
116MIPS_CPU ("24kf2_1", PROCESSOR_24KF2_1, 33, 0)
117MIPS_CPU ("24kf", PROCESSOR_24KF2_1, 33, 0)
118MIPS_CPU ("24kf1_1", PROCESSOR_24KF1_1, 33, 0)
119MIPS_CPU ("24kfx", PROCESSOR_24KF1_1, 33, 0)
120MIPS_CPU ("24kx", PROCESSOR_24KF1_1, 33, 0)
121
122MIPS_CPU ("24kec", PROCESSOR_24KC, 33, 0) /* 24K with DSP. */
123MIPS_CPU ("24kef2_1", PROCESSOR_24KF2_1, 33, 0)
124MIPS_CPU ("24kef", PROCESSOR_24KF2_1, 33, 0)
125MIPS_CPU ("24kef1_1", PROCESSOR_24KF1_1, 33, 0)
126MIPS_CPU ("24kefx", PROCESSOR_24KF1_1, 33, 0)
127MIPS_CPU ("24kex", PROCESSOR_24KF1_1, 33, 0)
128
129MIPS_CPU ("34kc", PROCESSOR_24KC, 33, 0) /* 34K with MT/DSP. */
130MIPS_CPU ("34kf2_1", PROCESSOR_24KF2_1, 33, 0)
131MIPS_CPU ("34kf", PROCESSOR_24KF2_1, 33, 0)
132MIPS_CPU ("34kf1_1", PROCESSOR_24KF1_1, 33, 0)
133MIPS_CPU ("34kfx", PROCESSOR_24KF1_1, 33, 0)
134MIPS_CPU ("34kx", PROCESSOR_24KF1_1, 33, 0)
fdd195f4 135MIPS_CPU ("34kn", PROCESSOR_24KC, 33, 0) /* 34K with MT but no DSP. */
d371df6f 136
855e0d0b
SE
137MIPS_CPU ("74kc", PROCESSOR_74KC, 33, PTF_AVOID_IMADD) /* 74K with DSPr2. */
138MIPS_CPU ("74kf2_1", PROCESSOR_74KF2_1, 33, PTF_AVOID_IMADD)
139MIPS_CPU ("74kf", PROCESSOR_74KF2_1, 33, PTF_AVOID_IMADD)
140MIPS_CPU ("74kf1_1", PROCESSOR_74KF1_1, 33, PTF_AVOID_IMADD)
141MIPS_CPU ("74kfx", PROCESSOR_74KF1_1, 33, PTF_AVOID_IMADD)
142MIPS_CPU ("74kx", PROCESSOR_74KF1_1, 33, PTF_AVOID_IMADD)
143MIPS_CPU ("74kf3_2", PROCESSOR_74KF3_2, 33, PTF_AVOID_IMADD)
d371df6f
JM
144
145MIPS_CPU ("1004kc", PROCESSOR_24KC, 33, 0) /* 1004K with MT/DSP. */
146MIPS_CPU ("1004kf2_1", PROCESSOR_24KF2_1, 33, 0)
147MIPS_CPU ("1004kf", PROCESSOR_24KF2_1, 33, 0)
148MIPS_CPU ("1004kf1_1", PROCESSOR_24KF1_1, 33, 0)
149
aaaa9efc
JP
150/* MIPS32 Release 5 processors. */
151MIPS_CPU ("p5600", PROCESSOR_P5600, 36, PTF_AVOID_BRANCHLIKELY)
152
d371df6f
JM
153/* MIPS64 processors. */
154MIPS_CPU ("5kc", PROCESSOR_5KC, 64, 0)
155MIPS_CPU ("5kf", PROCESSOR_5KF, 64, 0)
156MIPS_CPU ("20kc", PROCESSOR_20KC, 64, PTF_AVOID_BRANCHLIKELY)
157MIPS_CPU ("sb1", PROCESSOR_SB1, 64, PTF_AVOID_BRANCHLIKELY)
158MIPS_CPU ("sb1a", PROCESSOR_SB1A, 64, PTF_AVOID_BRANCHLIKELY)
159MIPS_CPU ("sr71000", PROCESSOR_SR71000, 64, PTF_AVOID_BRANCHLIKELY)
b0e7f54d 160MIPS_CPU ("xlr", PROCESSOR_XLR, 64, PTF_AVOID_BRANCHLIKELY)
d371df6f
JM
161
162/* MIPS64 Release 2 processors. */
0c72fa78 163MIPS_CPU ("loongson3a", PROCESSOR_LOONGSON_3A, 65, PTF_AVOID_BRANCHLIKELY)
d371df6f 164MIPS_CPU ("octeon", PROCESSOR_OCTEON, 65, PTF_AVOID_BRANCHLIKELY)
14f2a7e2 165MIPS_CPU ("octeon+", PROCESSOR_OCTEON, 65, PTF_AVOID_BRANCHLIKELY)
38a53a0e 166MIPS_CPU ("octeon2", PROCESSOR_OCTEON2, 65, PTF_AVOID_BRANCHLIKELY)
ed60a04b 167MIPS_CPU ("octeon3", PROCESSOR_OCTEON3, 65, PTF_AVOID_BRANCHLIKELY)
3fd03b93 168MIPS_CPU ("xlp", PROCESSOR_XLP, 65, PTF_AVOID_BRANCHLIKELY)